Compiler crashes when value class extends an alias of AnyVal
#21918
Labels
area:desugar
Desugaring happens after parsing but before typing, see desugar.scala
area:value-classes
Issues tied to value classes.
itype:bug
itype:crash
Spree
Suitable for a future Spree
Compiler version
cc38962
Minimized code
Output (click arrow to expand)
Notes
The check to determine if a class is a value class doesn't take aliasing into account. See:
scala3/compiler/src/dotty/tools/dotc/ast/Desugar.scala
Lines 597 to 601 in cc38962
The text was updated successfully, but these errors were encountered: