summaryrefslogtreecommitdiff
path: root/test/files/neg/for-comprehension-old.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-08 14:49:53 +0000
committerPaul Phillips <paulp@improving.org>2011-08-08 14:49:53 +0000
commit2e8cad2cc2709b4fa13096d963c46e0d255bd2bd (patch)
tree16ceb53beca36c2f0f506dd901e6614b1457f409 /test/files/neg/for-comprehension-old.check
parentcda4650d4d6486d6dc07766cd00c92d4712cca3f (diff)
downloadscala-2e8cad2cc2709b4fa13096d963c46e0d255bd2bd.tar.gz
scala-2e8cad2cc2709b4fa13096d963c46e0d255bd2bd.tar.bz2
scala-2e8cad2cc2709b4fa13096d963c46e0d255bd2bd.zip
Test update to go with the previous patch.
update on this matter is yet to come, no review.
Diffstat (limited to 'test/files/neg/for-comprehension-old.check')
-rw-r--r--test/files/neg/for-comprehension-old.check25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/files/neg/for-comprehension-old.check b/test/files/neg/for-comprehension-old.check
index ec54d619b4..783354d233 100644
--- a/test/files/neg/for-comprehension-old.check
+++ b/test/files/neg/for-comprehension-old.check
@@ -1,25 +1,26 @@
-for-comprehension-old.scala:2: error: assignment in for comprehension must be preceded by `val`
+for-comprehension-old.scala:2: warning: for comprehension assignment without a `val' declaration is deprecated.
for (x <- 1 to 5 ; y = x) yield x+y // fail
- ^
+ ^
+for-comprehension-old.scala:4: warning: for comprehension assignment without a `val' declaration is deprecated.
+ for (val x <- 1 to 5 ; y = x) yield x+y // fail
+ ^
+for-comprehension-old.scala:7: warning: for comprehension assignment without a `val' declaration is deprecated.
+ for (z <- 1 to 2 ; x <- 1 to 5 ; y = x) yield x+y // fail
+ ^
+for-comprehension-old.scala:9: warning: for comprehension assignment without a `val' declaration is deprecated.
+ for (z <- 1 to 2 ; val x <- 1 to 5 ; y = x) yield x+y // fail
+ ^
for-comprehension-old.scala:4: error: val in for comprehension must be followed by assignment
for (val x <- 1 to 5 ; y = x) yield x+y // fail
^
-for-comprehension-old.scala:4: error: assignment in for comprehension must be preceded by `val`
- for (val x <- 1 to 5 ; y = x) yield x+y // fail
- ^
for-comprehension-old.scala:5: error: val in for comprehension must be followed by assignment
for (val x <- 1 to 5 ; val y = x) yield x+y // fail
^
-for-comprehension-old.scala:7: error: assignment in for comprehension must be preceded by `val`
- for (z <- 1 to 2 ; x <- 1 to 5 ; y = x) yield x+y // fail
- ^
for-comprehension-old.scala:9: error: val in for comprehension must be followed by assignment
for (z <- 1 to 2 ; val x <- 1 to 5 ; y = x) yield x+y // fail
^
-for-comprehension-old.scala:9: error: assignment in for comprehension must be preceded by `val`
- for (z <- 1 to 2 ; val x <- 1 to 5 ; y = x) yield x+y // fail
- ^
for-comprehension-old.scala:10: error: val in for comprehension must be followed by assignment
for (z <- 1 to 2 ; val x <- 1 to 5 ; val y = x) yield x+y // fail
^
-8 errors found
+four warnings found
+four errors found