diff options
author | Som Snytt <som.snytt@gmail.com> | 2013-08-06 07:42:13 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2013-08-06 11:02:28 -0700 |
commit | e132de3de869c1ca382c6cfac895aed926560f28 (patch) | |
tree | 0f758af549c069ccab8ee88a6508a4c201e214c4 /test/files/neg | |
parent | 4c62f7db6f3913eedd92d85daf8f631149cc97b2 (diff) | |
download | scala-e132de3de869c1ca382c6cfac895aed926560f28.tar.gz scala-e132de3de869c1ca382c6cfac895aed926560f28.tar.bz2 scala-e132de3de869c1ca382c6cfac895aed926560f28.zip |
SI-7544 Interpolation message for %% literal
The new error text: "conversions must follow a splice; use %% for
literal %, %n for newline".
The error is emitted when % is not at the start of a part; only
the non-conversions %% and %n are allowed.
It would be nice if it were convenient to parse the part to see
what the user may have intended, but c'est l'erreur.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t7325.check | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/neg/t7325.check b/test/files/neg/t7325.check index 709ab6db3e..d2c40f4df8 100644 --- a/test/files/neg/t7325.check +++ b/test/files/neg/t7325.check @@ -1,19 +1,19 @@ -t7325.scala:2: error: percent signs not directly following splicees must be escaped +t7325.scala:2: error: conversions must follow a splice; use %% for literal %, %n for newline println(f"%") ^ -t7325.scala:4: error: percent signs not directly following splicees must be escaped +t7325.scala:4: error: conversions must follow a splice; use %% for literal %, %n for newline println(f"%%%") ^ -t7325.scala:6: error: percent signs not directly following splicees must be escaped +t7325.scala:6: error: conversions must follow a splice; use %% for literal %, %n for newline println(f"%%%%%") ^ t7325.scala:16: error: wrong conversion string println(f"${0}%") ^ -t7325.scala:19: error: percent signs not directly following splicees must be escaped +t7325.scala:19: error: conversions must follow a splice; use %% for literal %, %n for newline println(f"${0}%%%d") ^ -t7325.scala:21: error: percent signs not directly following splicees must be escaped +t7325.scala:21: error: conversions must follow a splice; use %% for literal %, %n for newline println(f"${0}%%%%%d") ^ 6 errors found |