aboutsummaryrefslogtreecommitdiff
path: root/tests/run/intmap.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/intmap.scala')
-rw-r--r--tests/run/intmap.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/intmap.scala b/tests/run/intmap.scala
new file mode 100644
index 000000000..593714e2f
--- /dev/null
+++ b/tests/run/intmap.scala
@@ -0,0 +1,8 @@
+object Test extends dotty.runtime.LegacyApp{
+ import scala.collection.immutable.IntMap;
+
+ val it = IntMap(8 -> 2, 11 -> 3, 1 -> 2, 7 -> 13);
+
+ assert(it.firstKey == 1);
+ assert(it.lastKey == 11);
+}