summaryrefslogtreecommitdiff
path: root/test/files/neg/t8610.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-05-24 06:08:17 -0700
committerSom Snytt <som.snytt@gmail.com>2014-07-08 21:28:35 -0700
commit44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3 (patch)
tree02bc8677560fb0e78b6b2eb67487ec6e29790ac1 /test/files/neg/t8610.check
parent91670d91824493e8bbbd88e9861e04e710311cbb (diff)
downloadscala-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/t8610.check')
-rw-r--r--test/files/neg/t8610.check11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/files/neg/t8610.check b/test/files/neg/t8610.check
index 7a18e55127..334a947549 100644
--- a/test/files/neg/t8610.check
+++ b/test/files/neg/t8610.check
@@ -1,15 +1,18 @@
-t8610.scala:3: warning: `$name` looks like an interpolated identifier! Did you forget the interpolator?
+t8610.scala:5: warning: possible missing interpolator: detected interpolated identifier `$name`
def x = "Hi, $name" // missing interp
^
-t8610.scala:5: warning: Adapting argument list by creating a 2-tuple: this may not be what you want.
+t8610.scala:7: warning: Adapting argument list by creating a 2-tuple: this may not be what you want.
signature: X.f(p: (Int, Int)): Int
given arguments: 3, 4
after adaptation: X.f((3, 4): (Int, Int))
def g = f(3, 4) // adapted
^
-t8610.scala:6: warning: side-effecting nullary methods are discouraged: suggest defining as `def u()` instead
+t8610.scala:9: warning: private[this] value name in class X shadows mutable name inherited from class Named. Changes to name will not be visible within class X - you may want to give them distinct names.
+ override def toString = name // shadowing mutable var name
+ ^
+t8610.scala:8: warning: side-effecting nullary methods are discouraged: suggest defining as `def u()` instead
def u: Unit = () // unitarian universalist
^
error: No warnings can be incurred under -Xfatal-warnings.
-three warnings found
+four warnings found
one error found