diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-19 22:14:29 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-19 22:14:29 +0000 |
commit | 9bd74024a120aca0c777ee3917084776875daa69 (patch) | |
tree | 2ed674dcc5e08e09a9d10eaa468c211af3ac4ffb /test/files | |
parent | 8b17d54737ba37bc96f91bfcd69590acb3f728e9 (diff) | |
download | scala-9bd74024a120aca0c777ee3917084776875daa69.tar.gz scala-9bd74024a120aca0c777ee3917084776875daa69.tar.bz2 scala-9bd74024a120aca0c777ee3917084776875daa69.zip |
A modified approach to map withDefault[Value].
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t3829.scala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/files/run/t3829.scala b/test/files/run/t3829.scala index 49fbbe6363..a7d03f34eb 100644 --- a/test/files/run/t3829.scala +++ b/test/files/run/t3829.scala @@ -1,13 +1,9 @@ - - - - // ticket #3829 object Test { - import collection._ + import collection.{ mutable, immutable } def main(args: Array[String]) { - val map = Map(1 -> 2, 3 -> 4) + val map = immutable.Map(1 -> 2, 3 -> 4) assert(map.get(0) == None) val defmap = map.withDefaultValue(-1) |