diff options
Diffstat (limited to 'tests/run/t751.scala')
-rw-r--r-- | tests/run/t751.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/t751.scala b/tests/run/t751.scala new file mode 100644 index 000000000..294d3af5c --- /dev/null +++ b/tests/run/t751.scala @@ -0,0 +1,6 @@ +object Test { + def main(args: Array[String]): Unit = { + val map = Map(1 -> "a", 2 -> "b", 3 -> "c") + assert(map.filterKeys(_ % 2 == 0).isInstanceOf[scala.collection.immutable.Map[_,_]]) + } +} |