summaryrefslogtreecommitdiff
path: root/test/files/neg/t7325.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-01-28 01:37:11 -0800
committerSom Snytt <som.snytt@gmail.com>2014-01-28 09:42:32 -0800
commit8053682d4ff0dcff3c1846a1bac9c718c92cc704 (patch)
treeafb0b22c79c389997ad37585b2c01603a5f4284b /test/files/neg/t7325.check
parentf22ddce265e8622e95f5e9cab4d38168bf2c3bf8 (diff)
downloadscala-8053682d4ff0dcff3c1846a1bac9c718c92cc704.tar.gz
scala-8053682d4ff0dcff3c1846a1bac9c718c92cc704.tar.bz2
scala-8053682d4ff0dcff3c1846a1bac9c718c92cc704.zip
SI-8092 More verify for f-interpolator
Attempt to verify the nooks and crannies of the format string. Allows all syntax in the javadoc, including arg indexes. If the specifier after an arg has an index that doesn't refer to the arg, a warning is issued and the missing `%s` is prepended (just as for a part with a leading `%n`). Other enhancements include detecting that a `Formattable` wasn't supplied to `%#s`. Error messages attempt to be pithy but descriptive.
Diffstat (limited to 'test/files/neg/t7325.check')
-rw-r--r--test/files/neg/t7325.check8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/t7325.check b/test/files/neg/t7325.check
index d2c40f4df8..61c33f99b1 100644
--- a/test/files/neg/t7325.check
+++ b/test/files/neg/t7325.check
@@ -1,13 +1,13 @@
-t7325.scala:2: error: conversions must follow a splice; use %% for literal %, %n for newline
+t7325.scala:2: error: Missing conversion operator in '%'; use %% for literal %, %n for newline
println(f"%")
^
-t7325.scala:4: error: conversions must follow a splice; use %% for literal %, %n for newline
+t7325.scala:4: error: Missing conversion operator in '%'; use %% for literal %, %n for newline
println(f"%%%")
^
-t7325.scala:6: error: conversions must follow a splice; use %% for literal %, %n for newline
+t7325.scala:6: error: Missing conversion operator in '%'; use %% for literal %, %n for newline
println(f"%%%%%")
^
-t7325.scala:16: error: wrong conversion string
+t7325.scala:16: error: Missing conversion operator in '%'; use %% for literal %, %n for newline
println(f"${0}%")
^
t7325.scala:19: error: conversions must follow a splice; use %% for literal %, %n for newline