diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-08-27 10:43:38 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-08-27 11:05:54 +1000 |
commit | 0b121d1864a3db1b34e5102e8258984ad0e8fd53 (patch) | |
tree | 59b43744a9899e8238b50e71eacb6aeddf1a990f /test/files/pos/t2433 | |
parent | 79171ce68e4cb6953faba31770ec77ccc23c76a9 (diff) | |
download | scala-0b121d1864a3db1b34e5102e8258984ad0e8fd53.tar.gz scala-0b121d1864a3db1b34e5102e8258984ad0e8fd53.tar.bz2 scala-0b121d1864a3db1b34e5102e8258984ad0e8fd53.zip |
SI-9450 Fix triple quoted strings in REPL :power mode
Some extra synthetic code generated under this mode failed to escape
input before adding it to a literal string. It used to get away with
this most of the time by triple quoting the literal.
This commit reuses Scala string escaping logic buried in `Constant`
to do this properly. Actually, the proper approach would be to build
the synthetic code with trees and quasiquotes, and avoid the mess
of stringly-genererated code.
I threw in some defensive hygiene for the reference to `Nil` while
I was in the neighbourhood.
Diffstat (limited to 'test/files/pos/t2433')
0 files changed, 0 insertions, 0 deletions