summaryrefslogtreecommitdiff
path: root/test/files/run/t9944.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-10-01 16:58:47 -0700
committerSom Snytt <som.snytt@gmail.com>2016-10-01 16:58:47 -0700
commit3dfcb1577d87ed817da0a1445ba414b2ec4c616d (patch)
tree4bf44be9a08927eac159a9c458b96d999dd5bf22 /test/files/run/t9944.check
parent388053544829c53c95cb6f9bf24ac366e950bac0 (diff)
downloadscala-3dfcb1577d87ed817da0a1445ba414b2ec4c616d.tar.gz
scala-3dfcb1577d87ed817da0a1445ba414b2ec4c616d.tar.bz2
scala-3dfcb1577d87ed817da0a1445ba414b2ec4c616d.zip
SI-9944 Scan after interp expr keeps CR
In an interpolated expression `s"""${ e }"""`, the scanner advances input past the RBRACE. If a multiline string as shown, get the next raw char, because CR is significant.
Diffstat (limited to 'test/files/run/t9944.check')
-rwxr-xr-xtest/files/run/t9944.check12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t9944.check b/test/files/run/t9944.check
new file mode 100755
index 0000000000..c2b0adf311
--- /dev/null
+++ b/test/files/run/t9944.check
@@ -0,0 +1,12 @@
+[[syntax trees at end of parser]] // newSource1.scala
+package <empty> {
+ class C extends scala.AnyRef {
+ def <init>() = {
+ super.<init>();
+ ()
+ };
+ def g = 42;
+ def f = StringContext("123\r\n", "\r\n123\r\n").s(g)
+ }
+}
+