Incorrect exhaustivity warning when using opaque types with constraint and enums #22513
Labels
area:enums
area:opaque-types
area:pattern-matching
area:reporting
Error reporting including formatting, implicit suggestions, etc
itype:bug
Compiler version
3.6.3
Minimized code
Output
Expectation
The code should compile without warnings.
Adding the case from the exhaustive warning like this
also does not compile with
The text was updated successfully, but these errors were encountered: