Better error message when an enum extends AnyVal #21944
Labels
area:desugar
Desugaring happens after parsing but before typing, see desugar.scala
area:enums
area:reporting
Error reporting including formatting, implicit suggestions, etc
area:value-classes
Issues tied to value classes.
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Spree
Suitable for a future Spree
Compiler version
bed0e86
Minimized example
Output Error/Warning message
Why this Error/Warning was not helpful
The message leaks implementation details about desugaring...
Suggested improvement
A message saying that enums cannot extend
AnyVal
is better hereThe text was updated successfully, but these errors were encountered: