diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-14 06:57:36 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-14 06:57:36 +0000 |
commit | 860f2bbe8529886a2f2d15eaa35bb5ded7cd4955 (patch) | |
tree | c4ad9b8f519b0a87e2d8ed34e9bfa3bc22f42db7 /test/files/run | |
parent | 2f3988dd7cd72dcc09204a0559d2f85e3d2eb4cc (diff) | |
download | scala-860f2bbe8529886a2f2d15eaa35bb5ded7cd4955.tar.gz scala-860f2bbe8529886a2f2d15eaa35bb5ded7cd4955.tar.bz2 scala-860f2bbe8529886a2f2d15eaa35bb5ded7cd4955.zip |
Test case closes #751. No review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug751.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/bug751.scala b/test/files/run/bug751.scala new file mode 100644 index 0000000000..294d3af5c2 --- /dev/null +++ b/test/files/run/bug751.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[_,_]]) + } +} |