summaryrefslogtreecommitdiff
path: root/test/files/neg/forgot-interpolator.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-18 20:36:16 -0700
commita5bae8f17cb96feb75fdc81480827ce44746fd1d (patch)
treecf468c6235fdb8df18c1bffb919431b936e817d1 /test/files/neg/forgot-interpolator.check
parent40d57db2998d9b2cc438bb268dc859d04b5df55c (diff)
downloadscala-a5bae8f17cb96feb75fdc81480827ce44746fd1d.tar.gz
scala-a5bae8f17cb96feb75fdc81480827ce44746fd1d.tar.bz2
scala-a5bae8f17cb96feb75fdc81480827ce44746fd1d.zip
SI-7848 Xlint no warn on $sym with params
This idea brought to you by retronym.
Diffstat (limited to 'test/files/neg/forgot-interpolator.check')
-rw-r--r--test/files/neg/forgot-interpolator.check17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/files/neg/forgot-interpolator.check b/test/files/neg/forgot-interpolator.check
index 1aad3b0003..a96431841f 100644
--- a/test/files/neg/forgot-interpolator.check
+++ b/test/files/neg/forgot-interpolator.check
@@ -4,6 +4,21 @@ forgot-interpolator.scala:4: warning: `$bippy` looks like an interpolated identi
forgot-interpolator.scala:14: warning: That looks like an interpolated expression! Did you forget the interpolator?
def f = """Put the ${println("bippy")} in the bippy!""" // warn
^
+forgot-interpolator.scala:30: warning: `$beppo` looks like an interpolated identifier! Did you forget the interpolator?
+ def f = "$beppo was a marx bros who saw dollars." // warn
+ ^
+forgot-interpolator.scala:34: warning: `$aleppo` looks like an interpolated identifier! Did you forget the interpolator?
+ def f = "$aleppo is a pepper and a city." // warn
+ ^
+forgot-interpolator.scala:40: warning: `$bar` looks like an interpolated identifier! Did you forget the interpolator?
+ def f = "$bar is private, shall we warn just in case?" // warn
+ ^
+forgot-interpolator.scala:45: warning: `$hippo` looks like an interpolated identifier! Did you forget the interpolator?
+ def h = "$hippo takes an implicit" // warn
+ ^
+forgot-interpolator.scala:37: warning: private method in class Bar is never used
+ private def bar = 8
+ ^
error: No warnings can be incurred under -Xfatal-warnings.
-two warnings found
+7 warnings found
one error found