summaryrefslogtreecommitdiff
path: root/test/files/neg/t7848-interp-warn.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-09-18 18:06:59 -0700
committerSom Snytt <som.snytt@gmail.com>2013-09-23 13:23:24 -0700
commit69ce27434e07c8dc215490256fe51622d768dd7e (patch)
tree827d13297d325a51af6f16ed856734a2e1583a39 /test/files/neg/t7848-interp-warn.check
parent7d570b54c3c895bc8948adeca2e463d135e38feb (diff)
downloadscala-69ce27434e07c8dc215490256fe51622d768dd7e.tar.gz
scala-69ce27434e07c8dc215490256fe51622d768dd7e.tar.bz2
scala-69ce27434e07c8dc215490256fe51622d768dd7e.zip
SI-7848 Xlint no warn on $sym with params
This idea brought to you by retronym. Also improve implicitNotFound detection at typer; and avoid checking the standard interpolation expression for cases like s"some $$x". Some minor refactorings of implicitNotFound strings. The intersobralator allows extra spaces, i.e., trims.
Diffstat (limited to 'test/files/neg/t7848-interp-warn.check')
-rw-r--r--test/files/neg/t7848-interp-warn.check9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/neg/t7848-interp-warn.check b/test/files/neg/t7848-interp-warn.check
index cbdc9f4c27..b7df6d8ce2 100644
--- a/test/files/neg/t7848-interp-warn.check
+++ b/test/files/neg/t7848-interp-warn.check
@@ -1,9 +1,12 @@
-t7848-interp-warn.scala:7: warning: `$foo` looks like an interpolated identifier! Did you forget the interpolator?
+t7848-interp-warn.scala:8: 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?
+t7848-interp-warn.scala:12: warning: That looks like an interpolated expression! Did you forget the interpolator?
"A doubly important ${foo * 2} message!"
^
+t7848-interp-warn.scala:16: warning: `$bar` looks like an interpolated identifier! Did you forget the interpolator?
+ def j = s"Try using '${ "something like $bar" }' instead." // warn
+ ^
error: No warnings can be incurred under -Xfatal-warnings.
-two warnings found
+three warnings found
one error found