aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-scala2
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos-scala2')
-rw-r--r--tests/pos-scala2/t2030.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos-scala2/t2030.scala b/tests/pos-scala2/t2030.scala
new file mode 100644
index 000000000..cbd62baba
--- /dev/null
+++ b/tests/pos-scala2/t2030.scala
@@ -0,0 +1,8 @@
+import scala.collection.immutable._
+
+object Test extends dotty.runtime.LegacyApp {
+ val res0 = TreeSet(1, 2, 3, 4, 5, 6)
+ val res1 = res0.map(x => x)
+ println(res0.toList == res1.toList)
+ println(res1.getClass)
+}