summaryrefslogtreecommitdiff
path: root/test/files/neg/t5510.check
diff options
context:
space:
mode:
authorDominik Gruntz <dominik.gruntz@fhnw.ch>2012-04-13 00:51:39 +0200
committerDominik Gruntz <dominik.gruntz@fhnw.ch>2012-04-13 00:51:39 +0200
commit983f414dd32752ff2dbca5a4637b0978b31d35a7 (patch)
tree8c59849505710c0f2854c7bec40ea54014e25c87 /test/files/neg/t5510.check
parent6e7382b5da213ca56bde1b1ad9e48f94b24de172 (diff)
downloadscala-983f414dd32752ff2dbca5a4637b0978b31d35a7.tar.gz
scala-983f414dd32752ff2dbca5a4637b0978b31d35a7.tar.bz2
scala-983f414dd32752ff2dbca5a4637b0978b31d35a7.zip
SI-5510: string interpolation: parser no longer hangs on unclosed string
Diffstat (limited to 'test/files/neg/t5510.check')
-rw-r--r--test/files/neg/t5510.check19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/t5510.check b/test/files/neg/t5510.check
new file mode 100644
index 0000000000..f74e424dc4
--- /dev/null
+++ b/test/files/neg/t5510.check
@@ -0,0 +1,19 @@
+t5510.scala:2: error: unclosed string literal
+ val s1 = s"xxx
+ ^
+t5510.scala:3: error: unclosed string literal
+ val s2 = s"xxx $x
+ ^
+t5510.scala:4: error: unclosed string literal
+ val s3 = s"xxx $$
+ ^
+t5510.scala:5: error: unclosed string literal
+ val s4 = ""s"
+ ^
+t5510.scala:6: error: unclosed multi-line string literal
+ val s5 = ""s""" $s1 $s2 s"
+ ^
+t5510.scala:7: error: Missing closing brace `}' assumed here
+}
+ ^
+6 errors found