summaryrefslogtreecommitdiff
path: root/test/files/neg/t7848-interp-warn.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t7848-interp-warn.check')
-rw-r--r--test/files/neg/t7848-interp-warn.check12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t7848-interp-warn.check b/test/files/neg/t7848-interp-warn.check
new file mode 100644
index 0000000000..b2a8f59a63
--- /dev/null
+++ b/test/files/neg/t7848-interp-warn.check
@@ -0,0 +1,12 @@
+t7848-interp-warn.scala:7: warning: `$foo` looks like an interpolated identifier! Did you forget the interpolator?
+ "An important $foo message!"
+ ^
+t7848-interp-warn.scala:11: warning: That looks like an interpolated expression! Did you forget the interpolator?
+ "A doubly important ${foo * 2} message!"
+ ^
+t7848-interp-warn.scala:9: warning: That looks like an interpolated expression! Did you forget the interpolator?
+ def g = {
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+three warnings found
+one error found