You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] ./Macro.scala:13:38
[error] Notfound: defdef - did you mean DefDef?
[error] Symbol.freshName(defdef.name +"_lazyval"),
[error] ^^^^^^
[error] ./Macro.scala:14:21
[error] Notfound: defdef - did you mean DefDef?
[error] defdef.returnTpt.tpe,
[error] ^^^^^^
[error] ./Macro.scala:18:47
[error] Notfound: defdef - did you mean DefDef?
[error] vallazyValDef=ValDef(lazyValSym, rhs = defdef.rhs.map(_.changeOwner(lazyValSym)))
[error] ^^^^^^
[error] ./Macro.scala:21:19
[error] Notfound: defdef - did you mean DefDef?
[error] DefDef.copy(defdef)(
[error] ^^^^^^
[error] ./Macro.scala:22:16
[error] Notfound: defdef - did you mean DefDef?
[error] name = defdef.name,
[error] ^^^^^^
[error] ./Macro.scala:23:19
[error] Notfound: defdef - did you mean DefDef?
[error] paramss = defdef.paramss,
[error] ^^^^^^
[error] ./Macro.scala:24:15
[error] Notfound: defdef - did you mean DefDef?
[error] tpt = defdef.tpt,
[error] ^^^^^^
[error] ./Macro.scala:27:39
[error] Notfound: defdef - did you mean DefDef?
[error] Ref(lazyValSym).changeOwner(defdef.symbol))
[error] ^^^^^^
@tschuchortdev are we missing a piece of the code? I think defdef hasn't been defined anywhere.
Compiler crashes when running a macro annotation on a local class. The same macro annotation works correctly with top-level classes.
Compiler version
3.6.2
Minimized code
This test works:
This test crashes the compiler:
Output
Expectation
Macro annotation should work correctly even for local classes.
The text was updated successfully, but these errors were encountered: