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:
odersky 2010-03-11 16:53:54 +00:00
parent 90ef89ca9b
commit 4aa5526277
3 changed files with 12 additions and 0 deletions

View File

@ -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) {

View File

@ -0,0 +1 @@
Array(<function1>)

View File

@ -0,0 +1,9 @@
object Test {
def main(args: Array[String]) {
println(args.map(_ => foo _).deep)
}
def foo(xs: String*) {
println(xs)
}
}