summaryrefslogtreecommitdiff
path: root/test/files/run/interpolationMultiline1.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-04-27 15:26:34 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-05-04 18:27:56 +0200
commitcb1a427d8ad4a92690610bfa7d6c79f48d440864 (patch)
tree79df6493fd72e370988ed3e794d2c3e297db70a9 /test/files/run/interpolationMultiline1.scala
parenta8edefcef8905ed3487c7293056f6d0946e79dd7 (diff)
downloadscala-cb1a427d8ad4a92690610bfa7d6c79f48d440864.tar.gz
scala-cb1a427d8ad4a92690610bfa7d6c79f48d440864.tar.bz2
scala-cb1a427d8ad4a92690610bfa7d6c79f48d440864.zip
SI-7325 cleans up corner cases of percent handling in StringContext.f
See comments in code for the exhaustive list of the cases handled. Also note that treatment of non-formatting percents has been changed. Embedding literal %'s now requires escaping. Moreover, this commit also features exact error positions for string interpolation, something that has been impossible until the fix for SI-7271, also included in this patch.
Diffstat (limited to 'test/files/run/interpolationMultiline1.scala')
-rw-r--r--test/files/run/interpolationMultiline1.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/interpolationMultiline1.scala b/test/files/run/interpolationMultiline1.scala
index 437aed44b0..db634e7775 100644
--- a/test/files/run/interpolationMultiline1.scala
+++ b/test/files/run/interpolationMultiline1.scala
@@ -13,7 +13,7 @@ object Test extends App {
println(s"""Best price: $f""")
println(f"""Best price: $f%.2f""")
println(s"""$f% discount included""")
- println(f"""$f%3.2f% discount included""")
+ println(f"""$f%3.2f%% discount included""")
}
test1(1)