diff options
author | Martin Odersky <odersky@gmail.com> | 2009-11-09 18:34:49 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-11-09 18:34:49 +0000 |
commit | 7da30bf2d5195d1e7a156680b50167707f7a3d0a (patch) | |
tree | 083cd78a70a13ac5fab4609a2a2875be48501df0 /test/files | |
parent | 2aeae987765bd5a63954b89ac8428db97b0a369f (diff) | |
download | scala-7da30bf2d5195d1e7a156680b50167707f7a3d0a.tar.gz scala-7da30bf2d5195d1e7a156680b50167707f7a3d0a.tar.bz2 scala-7da30bf2d5195d1e7a156680b50167707f7a3d0a.zip |
added `locally' to Predef.
added overloaded hashes to Predef.
some small changes.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t2569/Child.scala | 9 | ||||
-rw-r--r-- | test/files/pos/t2569/Parent.java | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/files/pos/t2569/Child.scala b/test/files/pos/t2569/Child.scala new file mode 100644 index 0000000000..64f4dc172f --- /dev/null +++ b/test/files/pos/t2569/Child.scala @@ -0,0 +1,9 @@ +package varargs + + class Child extends Parent { + + override def concatenate(strings: String*): String = + strings map("\"" + _ + "\"") mkString("(", ", ", ")") + + } + diff --git a/test/files/pos/t2569/Parent.java b/test/files/pos/t2569/Parent.java new file mode 100644 index 0000000000..89421becbd --- /dev/null +++ b/test/files/pos/t2569/Parent.java @@ -0,0 +1,13 @@ +package varargs; + + public class Parent { + + public String concatenate(String... strings) { + StringBuilder builder = new StringBuilder(); + for (String s : strings) { + builder.append(s); + } + return builder.toString(); + } + + } |