diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-08 14:49:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-08 14:49:53 +0000 |
commit | 2e8cad2cc2709b4fa13096d963c46e0d255bd2bd (patch) | |
tree | 16ceb53beca36c2f0f506dd901e6614b1457f409 /test | |
parent | cda4650d4d6486d6dc07766cd00c92d4712cca3f (diff) | |
download | scala-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')
-rw-r--r-- | test/files/neg/for-comprehension-old.check | 25 |
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 |