diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-16 06:31:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-16 06:31:59 +0000 |
commit | f80801c67545a28f61abd1a36a5ef8b5bc337d87 (patch) | |
tree | 3282f2469641089d1e540f1fad48c695b4293dd6 /test/files/neg/bug1181.scala | |
parent | fe9a10c9a0f088f8dc5c47b9cfda51864ec884cc (diff) | |
download | scala-f80801c67545a28f61abd1a36a5ef8b5bc337d87.tar.gz scala-f80801c67545a28f61abd1a36a5ef8b5bc337d87.tar.bz2 scala-f80801c67545a28f61abd1a36a5ef8b5bc337d87.zip |
Deprecation patrol.
warnings due to my changing a map from mutable to immutable (which
ought to be the good direction) because "def update" still lingers on
immutable maps. I counted the days elapsed since it was marked for death
(before 2.8.0) and added in the bugliness of what I was looking at and
bid it farewell.
Now removed: def update on immutable maps. No review.
Diffstat (limited to 'test/files/neg/bug1181.scala')
-rw-r--r-- | test/files/neg/bug1181.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/bug1181.scala b/test/files/neg/bug1181.scala index fbbb2a84d4..5e5fceacc8 100644 --- a/test/files/neg/bug1181.scala +++ b/test/files/neg/bug1181.scala @@ -6,7 +6,7 @@ class CompilerTest(val valueList: List[Symbol]) { def buildMap(map: Map[Symbol, Symbol], keyList: List[Symbol], valueList: List[Symbol]): Map[Symbol, Symbol] = { (keyList, valueList) match { case (Nil, Nil) => map - _ => buildMap(map.update(keyList.head, valueList.head), keyList.tail, valueList.tail) + _ => buildMap(map.updated(keyList.head, valueList.head), keyList.tail, valueList.tail) } } } |