summaryrefslogtreecommitdiff
path: root/test/files/run/t2030.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-01 16:44:56 +0000
committerPaul Phillips <paulp@improving.org>2009-10-01 16:44:56 +0000
commitd0442a8636e268f051052e4e4ff04225bab4f67e (patch)
tree2050fa048043c3b5714b389bc76bb5af57ce04c3 /test/files/run/t2030.scala
parented09a7a83d96d2d755b24c4ed8af442682e775ea (diff)
downloadscala-d0442a8636e268f051052e4e4ff04225bab4f67e.tar.gz
scala-d0442a8636e268f051052e4e4ff04225bab4f67e.tar.bz2
scala-d0442a8636e268f051052e4e4ff04225bab4f67e.zip
Test case for #2030 and #2056.
Diffstat (limited to 'test/files/run/t2030.scala')
-rw-r--r--test/files/run/t2030.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t2030.scala b/test/files/run/t2030.scala
new file mode 100644
index 0000000000..251ae2c622
--- /dev/null
+++ b/test/files/run/t2030.scala
@@ -0,0 +1,8 @@
+import scala.collection.immutable._
+
+object Test extends Application {
+ val res0 = TreeSet(1, 2, 3, 4, 5, 6)
+ val res1 = res0.map(x => x)
+ println(res0.toList == res1.toList)
+ println(res1.getClass)
+}