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
If the selector of a pattern match is an instance of a sealed class,
the compilation of pattern matching can emit warnings which
diagnose that a given set of patterns is not exhaustive,
i.e. that there is a possibility of a MatchError being raised at run-time.
This is the only reference to exhau* pattern matching spec.
DarkDimius
changed the title
Decide when we should do exhastivity checks
Decide when we should do exhaustivity checks
Jul 1, 2016
scalac only checks sealed classes. We should consider if we indeed want to change this.
https://github.com/lampepfl/dotty/pull/1261/files#diff-3fbc86b62f6455f297c02b6711bc66b1R470
In case we indeed decide to change it, I propose to maintain scalac compatible behavior in -language:Scala2 mode.
The text was updated successfully, but these errors were encountered: