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
Typechecking lazy vals is not idempotent #5466
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5466?orig=1 |
@xeno-by said: |
@xeno-by said: import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
import scala.tools.reflect.Eval
object Test extends App {
val lazee = reify {
class C { lazy val x = 2 }
new C().x
}
val tb = cm.mkToolBox()
val tlazee = tb.typeCheck(lazee.tree)
println(tlazee)
val rtlazee = tb.resetAllAttrs(tlazee)
println(tb.eval(rtlazee))
} |
@xeno-by said: |
@xeno-by said: |
Details:
The text was updated successfully, but these errors were encountered: