diff options
author | Martin Odersky <odersky@gmail.com> | 2010-03-11 16:53:54 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-03-11 16:53:54 +0000 |
commit | 356540e284e9c9407151a44afdb9480d8eb137a1 (patch) | |
tree | fda54fd4c62a369d73f54769f68cfc1884ccf6a7 /test/files | |
parent | dd7dbea5817036a1a88b71ef4417ae55ef9bd671 (diff) | |
download | scala-356540e284e9c9407151a44afdb9480d8eb137a1.tar.gz scala-356540e284e9c9407151a44afdb9480d8eb137a1.tar.bz2 scala-356540e284e9c9407151a44afdb9480d8eb137a1.zip |
Closes #3158. No review necessary.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t3158.check | 1 | ||||
-rw-r--r-- | test/files/run/t3158.scala | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t3158.check b/test/files/run/t3158.check new file mode 100644 index 0000000000..ab1cb284d5 --- /dev/null +++ b/test/files/run/t3158.check @@ -0,0 +1 @@ +Array(<function1>) diff --git a/test/files/run/t3158.scala b/test/files/run/t3158.scala new file mode 100644 index 0000000000..c824b62e96 --- /dev/null +++ b/test/files/run/t3158.scala @@ -0,0 +1,9 @@ +object Test { + def main(args: Array[String]) { + println(args.map(_ => foo _).deep) + } + + def foo(xs: String*) { + println(xs) + } +} |