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 compiler should complain about the implementation of Foo in the else branch - it doesn't implement xxx and overrides xxxx, which doesn't exist in Foo. Currently one only gets the error if the quoted expression with the invalid implementation actually gets expanded, e.g. if one invokes foo(false)
The text was updated successfully, but these errors were encountered:
These checks are done in the transformPhases of the compiler. But by then the contents of the quote are pickled. We would need to perform them before pickling.
Compiler version
3.2.1-RC1-bin-20220717-5c43324-NIGHTLY and before
Minimized code
MacroOverride.scala
:MacroOverrideTest.scala
:Output
No error
Expectation
The compiler should complain about the implementation of
Foo
in theelse
branch - it doesn't implementxxx
and overridesxxxx
, which doesn't exist inFoo
. Currently one only gets the error if the quoted expression with the invalid implementation actually gets expanded, e.g. if one invokesfoo(false)
The text was updated successfully, but these errors were encountered: