summaryrefslogtreecommitdiff
path: root/test/files/neg/forgot-interpolator.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/forgot-interpolator.check')
-rw-r--r--test/files/neg/forgot-interpolator.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/forgot-interpolator.check b/test/files/neg/forgot-interpolator.check
new file mode 100644
index 0000000000..f6de4d7b3a
--- /dev/null
+++ b/test/files/neg/forgot-interpolator.check
@@ -0,0 +1,9 @@
+forgot-interpolator.scala:4: warning: looks like an interpolated String; did you forget the interpolator?
+ def f = "Put the $bippy in the $bippy!" // warn
+ ^
+forgot-interpolator.scala:14: warning: looks like an interpolated String; did you forget the interpolator?
+ def f = """Put the ${println("bippy")} in the bippy!""" // warn
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found