Compiler crash when trying to use object with self reference in multi stage compilation #16437
Labels
area:desugar
Desugaring happens after parsing but before typing, see desugar.scala
good first issue
Perfect for someone who wants to get started contributing
itype:bug
itype:crash
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Self types in objects are prohibited in Scala 3 so probably this is an unhandled corner case. Adding type annotation results in compilation error
Compiler version
3.2.1
3.3.0-RC1-bin-20221128-8fba321-NIGHTLY
Minimized code
Output (click arrow to expand)
Adding type annotation would result in compilation error:
The text was updated successfully, but these errors were encountered: