Pattern matching with an AnyVal
scrutinee fails with unreachable case error
#7783
Labels
AnyVal
scrutinee fails with unreachable case error
#7783
Compiling this,
gives me the following unreachable case error rather than the non-exhaustivity warning I was hoping for,
Assuming this is a bug and that this should instead give us a warning about a non-exhaustive match, then does this make the introduction of
Null
as a subtype ofAnyVal
with-Yexplict-nulls
in #7546 problematic? Presumably the extra case would make previously exhaustive matches over existingAnyVals
non-exhaustive?The text was updated successfully, but these errors were encountered: