summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-11-16 21:58:02 +0100
committerGitHub <noreply@github.com>2016-11-16 21:58:02 +0100
commit55cff2cfa3f615f9eac158b1d2394ebbf473c6fb (patch)
tree651990bd0c117065edb6ab20cef5c4ffc4ddc408 /test/files/run
parent06b2b382a80fd4a53c3e6cf7119822319b87e3df (diff)
parent3dfcb1577d87ed817da0a1445ba414b2ec4c616d (diff)
downloadscala-55cff2cfa3f615f9eac158b1d2394ebbf473c6fb.tar.gz
scala-55cff2cfa3f615f9eac158b1d2394ebbf473c6fb.tar.bz2
scala-55cff2cfa3f615f9eac158b1d2394ebbf473c6fb.zip
Merge pull request #5440 from som-snytt/issue/9944
SI-9944 Scan after interp expr keeps CR
Diffstat (limited to 'test/files/run')
-rwxr-xr-xtest/files/run/t9944.check12
-rw-r--r--test/files/run/t9944.scala7
2 files changed, 19 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)
+ }
+}
+
diff --git a/test/files/run/t9944.scala b/test/files/run/t9944.scala
new file mode 100644
index 0000000000..01cd481266
--- /dev/null
+++ b/test/files/run/t9944.scala
@@ -0,0 +1,7 @@
+
+import scala.tools.partest.ParserTest
+
+object Test extends ParserTest {
+
+ def code = s"""class C { def g = 42 ; def f = s""\"123\r\n$${ g }\r\n123\r\n""\"}"""
+}