Macro-annotated class with nested block crashes the compiler #19537
Labels
area:metaprogramming:macro-annotations
itype:bug
itype:crash
regression
This worked in a previous version but doesn't anymore
Milestone
Compiler version
3.4.0-RC2
3.4.1-RC1-bin-20240125-453658b-NIGHTLY
Minimized code
The macro annotation just returns the input tree without any modification, but it seems the compiler does not even get to call the
transform
method.The tested class only contains an empty block
{ }
, which triggers the crash. Both Scala 3.3.1 and 3.3.2-RC1 compile without an error. It would be nice if the issue would not make it into 3.4.Output (click arrow to expand)
Compiler crash: java.lang.AssertionError: NoDenotation.owner
The text was updated successfully, but these errors were encountered: