aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t7445.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t7445.scala')
-rw-r--r--tests/run/t7445.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/t7445.scala b/tests/run/t7445.scala
new file mode 100644
index 000000000..25fc5d388
--- /dev/null
+++ b/tests/run/t7445.scala
@@ -0,0 +1,6 @@
+import scala.collection.immutable.ListMap
+
+object Test extends dotty.runtime.LegacyApp {
+ val a = ListMap(1 -> 1, 2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5);
+ require(a.tail == ListMap(2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5));
+}