aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t2075.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t2075.scala')
-rw-r--r--tests/run/t2075.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t2075.scala b/tests/run/t2075.scala
new file mode 100644
index 000000000..e81fb201c
--- /dev/null
+++ b/tests/run/t2075.scala
@@ -0,0 +1,7 @@
+object Test extends dotty.runtime.LegacyApp {
+ var tm = new scala.collection.immutable.TreeMap[Int,Int]
+ for (i <- 0 to 100)
+ tm = tm.insert(i, i)
+
+ tm.keySet.filter(_ < 40)
+}