aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/for-comprehension-old.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-04-10 00:26:16 +0200
committerDmitry Petrashko <dark@d-d.me>2015-04-10 00:26:16 +0200
commit52d6ac3833c6daf888d48bcea06a98674243501d (patch)
tree8571b55f57df7cc9c8319749379ff5c5a2cae032 /tests/untried/neg/for-comprehension-old.scala
parent0c1797a870d5440917f17c36192f9b9050abe5f2 (diff)
parenta16ab214fe7fa634c299529147f43e4967abc972 (diff)
downloaddotty-52d6ac3833c6daf888d48bcea06a98674243501d.tar.gz
dotty-52d6ac3833c6daf888d48bcea06a98674243501d.tar.bz2
dotty-52d6ac3833c6daf888d48bcea06a98674243501d.zip
Merge pull request #469 from dotty-staging/stylecheck
Add stylechecking to test suite, fix style errors
Diffstat (limited to 'tests/untried/neg/for-comprehension-old.scala')
-rw-r--r--tests/untried/neg/for-comprehension-old.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/untried/neg/for-comprehension-old.scala b/tests/untried/neg/for-comprehension-old.scala
index 10ae363bd..270861751 100644
--- a/tests/untried/neg/for-comprehension-old.scala
+++ b/tests/untried/neg/for-comprehension-old.scala
@@ -1,11 +1,11 @@
class A {
- for (x <- 1 to 5 ; y = x) yield x+y // ok
- for (x <- 1 to 5 ; val y = x) yield x+y // fail
- for (val x <- 1 to 5 ; y = x) yield x+y // fail
- for (val x <- 1 to 5 ; val y = x) yield x+y // fail
+ for (x <- 1 to 5 ; y = x) yield x + y // ok
+ for (x <- 1 to 5 ; val y = x) yield x + y // fail
+ for (val x <- 1 to 5 ; y = x) yield x + y // fail
+ for (val x <- 1 to 5 ; val y = x) yield x + y // fail
- for (z <- 1 to 2 ; x <- 1 to 5 ; y = x) yield x+y // ok
- for (z <- 1 to 2 ; x <- 1 to 5 ; val y = x) yield x+y // fail
- for (z <- 1 to 2 ; val x <- 1 to 5 ; y = x) yield x+y // fail
- for (z <- 1 to 2 ; val x <- 1 to 5 ; val y = x) yield x+y // fail
+ for (z <- 1 to 2 ; x <- 1 to 5 ; y = x) yield x + y // ok
+ for (z <- 1 to 2 ; x <- 1 to 5 ; val y = x) yield x + y // fail
+ for (z <- 1 to 2 ; val x <- 1 to 5 ; y = x) yield x + y // fail
+ for (z <- 1 to 2 ; val x <- 1 to 5 ; val y = x) yield x + y // fail
}