diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-10-01 16:58:47 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-10-01 16:58:47 -0700 |
commit | 3dfcb1577d87ed817da0a1445ba414b2ec4c616d (patch) | |
tree | 4bf44be9a08927eac159a9c458b96d999dd5bf22 /test/files/run/t9944.check | |
parent | 388053544829c53c95cb6f9bf24ac366e950bac0 (diff) | |
download | scala-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-x | test/files/run/t9944.check | 12 |
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) + } +} + |