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] -- [E050] ReferenceError:/Users/anatolii/Projects/dotty/playground/macros/src/main/scala/playground/macros.scala:15:14
[error] 15|case'{($x: Foo)($bar: String)} =>'{"Hello World"}
[error] |^^^^^^^
[error] | method exprSplice in objectQuoted does not take parameters
[error] one error found
If you uncomment the body of the Foo class, everything works as expected and "Hello World" is printed out.
[error] -- [E008] MemberNotFoundError:/Users/anatolii/Projects/dotty/playground/macros/src/main/scala/playground/macros.scala:15:23
[error] 15|case'{($x: Foo).apply($bar: String)} =>'{"Hello World"}
[error] |^^^^^^^^^^^^^^^
[error] | value apply is not a member of playground.macros.Foo
[error] one error found
expectation
I would expect the latter error to be displayed also in the former case.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
minimized code
Macro file:
Main file:
Error:
If you uncomment the body of the
Foo
class, everything works as expected and "Hello World" is printed out.If you replace the
case
clause with:The error changes:
expectation
I would expect the latter error to be displayed also in the former case.
The text was updated successfully, but these errors were encountered: