diff options
author | Som Snytt <som.snytt@gmail.com> | 2017-01-07 01:30:38 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-01-08 01:07:22 -0800 |
commit | 939abf1c7062f8be4f84854bb44a8e146d14a07f (patch) | |
tree | c8c1c917462c545626cfe1430677115f7a7c347a /test/files/neg/badtok-1.check | |
parent | 855492c928a795f175c6bb10ee6d4b23c871a123 (diff) | |
download | scala-939abf1c7062f8be4f84854bb44a8e146d14a07f.tar.gz scala-939abf1c7062f8be4f84854bb44a8e146d14a07f.tar.bz2 scala-939abf1c7062f8be4f84854bb44a8e146d14a07f.zip |
SI-10120 Extra advice on unclosed char literal
Folks from other languages might mistakenly enclose
a string in single quotes. Since this presents as
a symbol literal followed by the unpaired single
quote, we can add a syntax reminder.
Also polish the wording for bad string
interpolation.
Diffstat (limited to 'test/files/neg/badtok-1.check')
-rw-r--r-- | test/files/neg/badtok-1.check | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/badtok-1.check b/test/files/neg/badtok-1.check index 891fa12a55..5d5a8e1f35 100644 --- a/test/files/neg/badtok-1.check +++ b/test/files/neg/badtok-1.check @@ -7,4 +7,7 @@ badtok-1.scala:2: error: unclosed character literal badtok-1.scala:6: error: empty character literal (use '\'' for single quote) ''' ^ -three errors found +badtok-1.scala:9: error: unclosed character literal (or use " for string literal "abc") +'abc' + ^ +four errors found |