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
malformed use of "f" string interpolator slays compiler #7653
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7653?orig=1 |
@SethTisue said: |
@retronym said: Notice below we get the error reported if we manually write scala> import reflect.macros.Context, language.experimental._
import reflect.macros.Context
import language.experimental._
scala> def impl(c: Context) = { c.error(c.macroApplication.pos, "."); c.literal("") }
impl: (c: scala.reflect.macros.Context)c.Expr[String]
scala> def m = macro impl
defined term macro m: String
scala> m.apply()
<console>:14: error: .
m.apply()
^
scala> m()
java.lang.NullPointerException |
@gkossakowski said: |
@gkossakowski said: |
@retronym said: |
@som-snytt said: |
@SethTisue said: |
the poison pill is:
here's a stack trace from 2.11.0-M3; the results in 2.10.2 are similar
#6829 and #7001 appear similar, but they are fixed and this is not
The text was updated successfully, but these errors were encountered: