diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-03-14 20:25:11 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-03-14 20:25:11 +0000 |
commit | 048fe68a1f533a789bd39b80ce9793861d19df48 (patch) | |
tree | 488f1ed67f79b513a2028135a1abeb59a2bb0286 /test/files | |
parent | fbf7125dd8df0e682c27069de42bb2c9e4b03ae7 (diff) | |
download | scala-048fe68a1f533a789bd39b80ce9793861d19df48.tar.gz scala-048fe68a1f533a789bd39b80ce9793861d19df48.tar.bz2 scala-048fe68a1f533a789bd39b80ce9793861d19df48.zip |
Closes #4163. no review
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t4163.check | 7 | ||||
-rw-r--r-- | test/files/neg/t4163.scala | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t4163.check b/test/files/neg/t4163.check new file mode 100644 index 0000000000..d275117833 --- /dev/null +++ b/test/files/neg/t4163.check @@ -0,0 +1,7 @@ +t4163.scala:4: error: '<-' expected but '=' found. + x = 3 + ^ +t4163.scala:5: error: illegal start of simple expression + y <- 0 to 100 +^ +two errors found diff --git a/test/files/neg/t4163.scala b/test/files/neg/t4163.scala new file mode 100644 index 0000000000..25ce5522a4 --- /dev/null +++ b/test/files/neg/t4163.scala @@ -0,0 +1,8 @@ +class Bug { + val z = ( + for { + x = 3 + y <- 0 to 100 + } yield y + ).toArray +} |