summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/bug1181.check2
-rw-r--r--test/files/neg/bug1181.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/bug1181.check b/test/files/neg/bug1181.check
index 38045eda87..a196a702ab 100644
--- a/test/files/neg/bug1181.check
+++ b/test/files/neg/bug1181.check
@@ -1,4 +1,4 @@
bug1181.scala:9: error: missing parameter type
- _ => buildMap(map.update(keyList.head, valueList.head), keyList.tail, valueList.tail)
+ _ => buildMap(map.updated(keyList.head, valueList.head), keyList.tail, valueList.tail)
^
one error found
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)
}
}
}