diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-01 19:31:06 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-01 19:31:06 +0000 |
commit | 7209116540dee44916214870cc476546b20e0eae (patch) | |
tree | 89bcac677c3558d497043e7f26b8160357109dcc /test | |
parent | d0442a8636e268f051052e4e4ff04225bab4f67e (diff) | |
download | scala-7209116540dee44916214870cc476546b20e0eae.tar.gz scala-7209116540dee44916214870cc476546b20e0eae.tar.bz2 scala-7209116540dee44916214870cc476546b20e0eae.zip |
Fix and test case for #2075.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/bug2075.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/bug2075.scala b/test/files/run/bug2075.scala new file mode 100644 index 0000000000..f328faddcb --- /dev/null +++ b/test/files/run/bug2075.scala @@ -0,0 +1,7 @@ +object Test extends Application { + var tm = new scala.collection.immutable.TreeMap[Int,Int] + for (i <- 0 to 100) + tm = tm.insert(i, i) + + tm.keySet.filter(_ < 40) +}
\ No newline at end of file |