summaryrefslogtreecommitdiff
path: root/test/files/run/t8266-octal-interp.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-02-11 13:53:32 -0800
committerSom Snytt <som.snytt@gmail.com>2014-02-11 13:53:32 -0800
commitff4cfd575a9b731adc60582de447fafb5303eb49 (patch)
tree5a01de0954e811fd7e012f3f902c74c540837b8d /test/files/run/t8266-octal-interp.scala
parentd4f5abf9002fd617e871d1f20fdcf531b38b26e1 (diff)
downloadscala-ff4cfd575a9b731adc60582de447fafb5303eb49.tar.gz
scala-ff4cfd575a9b731adc60582de447fafb5303eb49.tar.bz2
scala-ff4cfd575a9b731adc60582de447fafb5303eb49.zip
SI-8266 Deprecate octal escapes in f-interpolator
Also turns the f-interpolator into a migration assistant by suggesting alternatives for the standard escapes.
Diffstat (limited to 'test/files/run/t8266-octal-interp.scala')
-rw-r--r--test/files/run/t8266-octal-interp.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t8266-octal-interp.scala b/test/files/run/t8266-octal-interp.scala
new file mode 100644
index 0000000000..f85ae0367d
--- /dev/null
+++ b/test/files/run/t8266-octal-interp.scala
@@ -0,0 +1,16 @@
+
+trait X {
+ def f = Seq(
+ f"a\10c",
+ f"a\11c",
+ f"a\12c",
+ f"a\15c",
+ f"a\42c",
+ f"a\134c",
+ f"a\15151515c"
+ )
+}
+
+object Test extends App with X {
+ f foreach println
+}