We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45). Type in expressions to have them evaluated. Type :help for more information. scala> object Mover { | import scala.reflect.macros.Context | def moveTreeMacro(c: Context)(e: c.Expr[Any]): c.Expr[Any] = { | import c._ | import c.universe._ | val ee = c.Expr(c.resetLocalAttrs(e.tree)) | reify { | new AnyRef { | def moved = { | ee.splice | } | } | } | } | import scala.language.experimental.macros | def moveTree(e: Any): Any = macro moveTreeMacro | } defined module Mover scala> Mover.moveTree { lazy val a = 1 } <console>:9: error: missing parameter type Mover.moveTree { lazy val a = 1 } ^
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8499?orig=1 Reporter: @Atry Affected Versions: 2.10.3, 2.10.4 See #5464, #5466
Sorry, something went wrong.
Works in 2.12 after lazy vals got reworked
@joroKr21 thanks for the ticket triage help, much appreciated
No branches or pull requests
The text was updated successfully, but these errors were encountered: