Closes #3158. No review necessary.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21139 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
90ef89ca9b
commit
4aa5526277
|
@ -797,6 +797,8 @@ self: Analyzer =>
|
|||
findSingletonManifest(sym.name.toString)
|
||||
} else if (sym == ObjectClass || sym == AnyRefClass) {
|
||||
findSingletonManifest("Object")
|
||||
} else if (sym == RepeatedParamClass || sym == ByNameParamClass) {
|
||||
EmptyTree
|
||||
} else if (sym == ArrayClass && args.length == 1) {
|
||||
manifestFactoryCall("arrayType", args.head, findSubManifest(args.head))
|
||||
} else if (sym.isClass) {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Array(<function1>)
|
|
@ -0,0 +1,9 @@
|
|||
object Test {
|
||||
def main(args: Array[String]) {
|
||||
println(args.map(_ => foo _).deep)
|
||||
}
|
||||
|
||||
def foo(xs: String*) {
|
||||
println(xs)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue