summaryrefslogblamecommitdiff
path: root/test/files/neg/for-comprehension-old.check
blob: 783354d2337aea06173fcf37e86315b8e96e0776 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                                                                               
                                                       









                                                                                                               


                                                                                             


                                                                                             


                                                                                             


                                                                                              

                   
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: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: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: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
                           ^
four warnings found
four errors found