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
The problem is that vals are inlined at a later stage of compilation, so the macros can't see them / they haven't been inlined when the macros are run.
You can however put final on your val (without inline) and it will be inlined correctly, if you want that.
On the compiler phases:
scalac -Xshow-phases
...
inlining inline and execute macros
postInlining add mirror support for inlined code
checkUnusedPostInlining check for unused elements
... loads of stuff ... oh look!
inlineVals check right hand-sides of an `inline val`s
...
There was some reason I didn't do this the first time around... but maybe I know enough now to make them work?
The text was updated successfully, but these errors were encountered: