summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-09 15:06:01 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-09 15:06:01 +0000
commit029482c86e4940bb47a195eea13d9f66faeb2c66 (patch)
treeff92f471a60311406e508de51f22ae63b81ed46f /test/files
parent0394b8426ff8ad41f0455c5318518d1a84540290 (diff)
downloadscala-029482c86e4940bb47a195eea13d9f66faeb2c66.tar.gz
scala-029482c86e4940bb47a195eea13d9f66faeb2c66.tar.bz2
scala-029482c86e4940bb47a195eea13d9f66faeb2c66.zip
Closes #3493. Review by extempore.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t3493.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t3493.scala b/test/files/run/t3493.scala
new file mode 100644
index 0000000000..aafe7a3a4a
--- /dev/null
+++ b/test/files/run/t3493.scala
@@ -0,0 +1,15 @@
+
+
+
+
+object Test {
+
+ def main(args: Array[String]) {
+ import scala.collection.immutable._
+ val x = TreeSet("a", "b", "c", "d")
+ val x2 = x + "e"
+ assert(x2.toString == "TreeSet(a, b, c, d, e)")
+ assert(x2.toString == runtime.ScalaRunTime.stringOf(x2).trim)
+ }
+
+}