From 855492c928a795f175c6bb10ee6d4b23c871a123 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Mon, 2 Jan 2017 22:19:09 -0800 Subject: SI-10133 Require escaped single quote char lit The spec specifically requires `'\''` and not `'''`. The error consumes all consecutive single quotes. --- test/files/neg/badtok-1.check | 5 ++++- test/files/neg/badtok-1.scala | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'test') 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 +''' -- cgit v1.2.3