summaryrefslogtreecommitdiff
path: root/test/files/neg/forgot-interpolator.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-09-17 12:52:53 -0700
committerSom Snytt <som.snytt@gmail.com>2013-09-17 13:02:21 -0700
commit6ff756b7874fffe9cfe260be1b35536d48f88db2 (patch)
treea0c7bc6a1818cf6229b289a637cb2b0939763d35 /test/files/neg/forgot-interpolator.check
parent9dbc321504ad5550638d6d7c2b3cd2f98273cf74 (diff)
downloadscala-6ff756b7874fffe9cfe260be1b35536d48f88db2.tar.gz
scala-6ff756b7874fffe9cfe260be1b35536d48f88db2.tar.bz2
scala-6ff756b7874fffe9cfe260be1b35536d48f88db2.zip
SI-7848 Xlint says what looks interpolated
The motivating use case was an Expecty debug string getting flagged for `$eq`. The test case demonstrates a different bug, in which the position of the literal tree is changed when typer gets rid of the unused local, so that when the tree is re-typed in erasure, a second, spurious warning is emitted at the start of the method. Specifically, the second warning is not suppressed because of the different position.
Diffstat (limited to 'test/files/neg/forgot-interpolator.check')
-rw-r--r--test/files/neg/forgot-interpolator.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/forgot-interpolator.check b/test/files/neg/forgot-interpolator.check
index f6de4d7b3a..1aad3b0003 100644
--- a/test/files/neg/forgot-interpolator.check
+++ b/test/files/neg/forgot-interpolator.check
@@ -1,7 +1,7 @@
-forgot-interpolator.scala:4: warning: looks like an interpolated String; did you forget the interpolator?
+forgot-interpolator.scala:4: warning: `$bippy` looks like an interpolated identifier! Did you forget the interpolator?
def f = "Put the $bippy in the $bippy!" // warn
^
-forgot-interpolator.scala:14: warning: looks like an interpolated String; did you forget the interpolator?
+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
^
error: No warnings can be incurred under -Xfatal-warnings.