diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-05-24 06:08:17 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-07-08 21:28:35 -0700 |
commit | 44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3 (patch) | |
tree | 02bc8677560fb0e78b6b2eb67487ec6e29790ac1 /test/files/neg/t7848-interp-warn.check | |
parent | 91670d91824493e8bbbd88e9861e04e710311cbb (diff) | |
download | scala-44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3.tar.gz scala-44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3.tar.bz2 scala-44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3.zip |
SI-8525 Add -Xlint:-warn-missing-interpolator
Turn off lint warnings with negating prefix, and add a lint-only
warning for the infamously nagging "Did you forget the interpolator?"
That message is made more dignified.
Without `-Xlint:false`, there is no mechanism to turn off
anonymous linters once `-Xlint` is selected.
Diffstat (limited to 'test/files/neg/t7848-interp-warn.check')
-rw-r--r-- | test/files/neg/t7848-interp-warn.check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/t7848-interp-warn.check b/test/files/neg/t7848-interp-warn.check index b7df6d8ce2..4cf9d55ffd 100644 --- a/test/files/neg/t7848-interp-warn.check +++ b/test/files/neg/t7848-interp-warn.check @@ -1,10 +1,10 @@ -t7848-interp-warn.scala:8: warning: `$foo` looks like an interpolated identifier! Did you forget the interpolator? +t7848-interp-warn.scala:8: warning: possible missing interpolator: detected interpolated identifier `$foo` "An important $foo message!" ^ -t7848-interp-warn.scala:12: warning: That looks like an interpolated expression! Did you forget the interpolator? +t7848-interp-warn.scala:12: warning: possible missing interpolator: detected an interpolated expression "A doubly important ${foo * 2} message!" ^ -t7848-interp-warn.scala:16: warning: `$bar` looks like an interpolated identifier! Did you forget the interpolator? +t7848-interp-warn.scala:16: warning: possible missing interpolator: detected interpolated identifier `$bar` def j = s"Try using '${ "something like $bar" }' instead." // warn ^ error: No warnings can be incurred under -Xfatal-warnings. |