diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t2030.check | 2 | ||||
-rw-r--r-- | test/files/run/t2030.scala | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t2030.check b/test/files/run/t2030.check new file mode 100644 index 0000000000..5923569f4f --- /dev/null +++ b/test/files/run/t2030.check @@ -0,0 +1,2 @@ +true +class scala.collection.immutable.TreeSet
\ No newline at end of file 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) +} |