summaryrefslogtreecommitdiff
path: root/test/files/neg/t7325.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-05-10 11:25:39 -0700
committerPaul Phillips <paulp@improving.org>2013-05-10 11:25:39 -0700
commitece84b704e20c76efab15d82b565544ec350c950 (patch)
tree950baf597c312b393fce6e5dcbbdd93714f72fb2 /test/files/neg/t7325.check
parent34d28aaaa8abd0ef9f9b29ec201b59d0d1e335db (diff)
parent25f49cb392846052025d745e2403b681793ce647 (diff)
downloadscala-ece84b704e20c76efab15d82b565544ec350c950.tar.gz
scala-ece84b704e20c76efab15d82b565544ec350c950.tar.bz2
scala-ece84b704e20c76efab15d82b565544ec350c950.zip
Merge pull request #2461 from scalamacros/ticket/7325
Some fixes for string interpolation
Diffstat (limited to 'test/files/neg/t7325.check')
-rw-r--r--test/files/neg/t7325.check19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/t7325.check b/test/files/neg/t7325.check
new file mode 100644
index 0000000000..709ab6db3e
--- /dev/null
+++ b/test/files/neg/t7325.check
@@ -0,0 +1,19 @@
+t7325.scala:2: error: percent signs not directly following splicees must be escaped
+ println(f"%")
+ ^
+t7325.scala:4: error: percent signs not directly following splicees must be escaped
+ println(f"%%%")
+ ^
+t7325.scala:6: error: percent signs not directly following splicees must be escaped
+ 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
+ println(f"${0}%%%d")
+ ^
+t7325.scala:21: error: percent signs not directly following splicees must be escaped
+ println(f"${0}%%%%%d")
+ ^
+6 errors found