diff options
author | Som Snytt <som.snytt@gmail.com> | 2017-01-02 22:19:09 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-01-08 01:07:21 -0800 |
commit | 855492c928a795f175c6bb10ee6d4b23c871a123 (patch) | |
tree | 1bfc1893405790a2758f75b04692acdddadb26e2 /test | |
parent | bf9b00ebede9ab16fc4662a3dd5f5fb5d6a5ab7c (diff) | |
download | scala-855492c928a795f175c6bb10ee6d4b23c871a123.tar.gz scala-855492c928a795f175c6bb10ee6d4b23c871a123.tar.bz2 scala-855492c928a795f175c6bb10ee6d4b23c871a123.zip |
SI-10133 Require escaped single quote char lit
The spec specifically requires `'\''` and not `'''`.
The error consumes all consecutive single quotes.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/badtok-1.check | 5 | ||||
-rw-r--r-- | test/files/neg/badtok-1.scala | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/files/neg/badtok-1.check b/test/files/neg/badtok-1.check index b05bc60161..891fa12a55 100644 --- a/test/files/neg/badtok-1.check +++ b/test/files/neg/badtok-1.check @@ -4,4 +4,7 @@ badtok-1.scala:2: error: unclosed character literal badtok-1.scala:2: error: unclosed character literal '42' ^ -two errors found +badtok-1.scala:6: error: empty character literal (use '\'' for single quote) +''' +^ +three errors found diff --git a/test/files/neg/badtok-1.scala b/test/files/neg/badtok-1.scala index 706e794946..40799c3c3d 100644 --- a/test/files/neg/badtok-1.scala +++ b/test/files/neg/badtok-1.scala @@ -1,2 +1,6 @@ // bug 989 '42' + + +// SI-10133 +''' |