diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-01 09:33:26 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-01 22:40:43 -0700 |
commit | ce048745e1520c03cd1467933a87f4d5f8b77652 (patch) | |
tree | ce9f2554f2131e7a4dac9e9d6064a7a6a8f05e7f /test/files/run | |
parent | 6b87cdcd7bd6d1932e87e6bf8dc6029d6461a488 (diff) | |
download | scala-ce048745e1520c03cd1467933a87f4d5f8b77652.tar.gz scala-ce048745e1520c03cd1467933a87f4d5f8b77652.tar.bz2 scala-ce048745e1520c03cd1467933a87f4d5f8b77652.zip |
Fix for SI-6273, repl string interpolation.
As usual the hard part is tracing through all the
needless abstraction. Begone, 25 layers of parsing error
issuing methods!
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t6273.check | 19 | ||||
-rw-r--r-- | test/files/run/t6273.scala | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t6273.check b/test/files/run/t6273.check new file mode 100644 index 0000000000..c1c18daac2 --- /dev/null +++ b/test/files/run/t6273.check @@ -0,0 +1,19 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> val y = 55 +y: Int = 55 + +scala> val x = s""" + y = $y +""" +x: String = +" + y = 55 +" + +scala> + +scala> diff --git a/test/files/run/t6273.scala b/test/files/run/t6273.scala new file mode 100644 index 0000000000..ed0fd452e0 --- /dev/null +++ b/test/files/run/t6273.scala @@ -0,0 +1,11 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def tq = "\"\"\"" + def code = s""" +val y = 55 +val x = s$tq + y = $$y +$tq + """ +} |