diff options
author | Paul Phillips <paulp@improving.org> | 2013-01-31 07:08:24 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-01-31 07:08:24 -0800 |
commit | 27d73a23525aa66d5e07c96fe02b1f690866159c (patch) | |
tree | 881028ecb642b70341a8762c165901a4a4b3bc5f /test | |
parent | c4f49759fe8f15e25174232abe566ad292d2e5e8 (diff) | |
parent | 80a814d82cd85a63ec1df516dc18559661f67559 (diff) | |
download | scala-27d73a23525aa66d5e07c96fe02b1f690866159c.tar.gz scala-27d73a23525aa66d5e07c96fe02b1f690866159c.tar.bz2 scala-27d73a23525aa66d5e07c96fe02b1f690866159c.zip |
Merge pull request #2028 from JamesIry/2.10.x_SI-6728
SI-6728 Fixes crash in parser on incomplete for expression
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t6728.check | 4 | ||||
-rw-r--r-- | test/files/neg/t6728.scala | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t6728.check b/test/files/neg/t6728.check new file mode 100644 index 0000000000..d853d6f724 --- /dev/null +++ b/test/files/neg/t6728.check @@ -0,0 +1,4 @@ +t6728.scala:4: error: '(' expected but '}' found. + } + ^ +one error found diff --git a/test/files/neg/t6728.scala b/test/files/neg/t6728.scala new file mode 100644 index 0000000000..ba0b1a0fdf --- /dev/null +++ b/test/files/neg/t6728.scala @@ -0,0 +1,5 @@ +object X { + while(true) { + for + } +} |