Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False negative in missing interpolator warning #8761

Open
scabug opened this issue Jul 30, 2014 · 1 comment
Open

False negative in missing interpolator warning #8761

scabug opened this issue Jul 30, 2014 · 1 comment

Comments

@scabug
Copy link

scabug commented Jul 30, 2014

amarki@amarki-462836:~$ scala -Xlint:missing-interpolator
Welcome to Scala version 2.11.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_05).
Type in expressions to have them evaluated.
Type :help for more information.

scala> { val foo = 1 ; "hi $foo" }
<console>:8: warning: possible missing interpolator: detected interpolated identifier `$foo`
              { val foo = 1 ; "hi $foo" }
                              ^
res0: String = hi $foo

scala> { val foo, bar = 1 ; "hi $foo$bar" }
res1: String = hi $foo$bar

Scarfing the embedded $ was added at 85160957cd072507bbcd164349211c9a4eb8372d

@scabug
Copy link
Author

scabug commented Jul 30, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8761?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants