summaryrefslogtreecommitdiff
path: root/test/files/neg/forgot-interpolator.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-27 13:49:56 -0700
committerPaul Phillips <paulp@improving.org>2013-09-27 13:49:56 -0700
commit85160957cd072507bbcd164349211c9a4eb8372d (patch)
tree9b878644e842e4ca6ca65e7a632336347375fdc1 /test/files/neg/forgot-interpolator.check
parent5a8cd09819f58adcb866722f48b00066d23e7a82 (diff)
downloadscala-85160957cd072507bbcd164349211c9a4eb8372d.tar.gz
scala-85160957cd072507bbcd164349211c9a4eb8372d.tar.bz2
scala-85160957cd072507bbcd164349211c9a4eb8372d.zip
Some refinement of -Xlint interpolation warning.
I had covered a few more cases working on this recently. The warnings in several more cases involving polymorphism, currying, and selects vs. idents receive more refined handling.
Diffstat (limited to 'test/files/neg/forgot-interpolator.check')
-rw-r--r--test/files/neg/forgot-interpolator.check11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/files/neg/forgot-interpolator.check b/test/files/neg/forgot-interpolator.check
index 98440fe657..157cbb4802 100644
--- a/test/files/neg/forgot-interpolator.check
+++ b/test/files/neg/forgot-interpolator.check
@@ -16,6 +16,15 @@ forgot-interpolator.scala:42: warning: `$bar` looks like an interpolated identif
forgot-interpolator.scala:47: warning: `$hippo` looks like an interpolated identifier! Did you forget the interpolator?
def h = "$hippo takes an implicit" // warn 6
^
+forgot-interpolator.scala:88: warning: `$groucho` looks like an interpolated identifier! Did you forget the interpolator?
+ def f2 = "I salute $groucho" // warn 7
+ ^
+forgot-interpolator.scala:89: warning: `$dingo` looks like an interpolated identifier! Did you forget the interpolator?
+ def f3 = "I even salute $dingo" // warn 8
+ ^
+forgot-interpolator.scala:90: warning: `$calico` looks like an interpolated identifier! Did you forget the interpolator?
+ def f4 = "I also salute $calico" // warn 9
+ ^
error: No warnings can be incurred under -Xfatal-warnings.
-6 warnings found
+9 warnings found
one error found