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
inline def foo(inline a: Int) = ${myMacro(a)}
^
access to parameter a from wrong staging level:
- the definition is at level 0,
- but the access is at level -1.
Expectation
bar inlines to baz, so I would expect there to be no difference between calling bar or calling baz.
Both bar and a are inline so I would expect them to behave the same.
The answer here might seem to be that none of these 3 cases should compile. However the compiler itself told me that at least case 3 should also work:
Malformed macro.
Expected the splice ${...} to be at the top of the RHS:
inline def foo(inline x: X, ..., y: Y): Int = ${impl(x, ... '{y}})
* The contents of the splice must call a static method
* All arguments must be quoted or inline
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0-RC1
Minimized code
Case 1
This compiles:
Case 2
While this doesn't:
Case 3
And this also doesn't compile:
Expectation
bar
inlines tobaz
, so I would expect there to be no difference between callingbar
or callingbaz
.Both
bar
anda
are inline so I would expect them to behave the same.The answer here might seem to be that none of these 3 cases should compile. However the compiler itself told me that at least case 3 should also work:
The text was updated successfully, but these errors were encountered: