Improve the "not exhaustive" diagnostic in the presence of a when clause. #45157
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Feature - Pattern Matching
Pattern Matching
Milestone
After #44702 we produce a diagnostic that gives an example of a pattern that would cover a non-covered scenario in a switch expression that isn't exhaustive. However, we don't tell the user when that is because of the presence of a
when
clause. @alrz observed this in code review:We should definitely enhance the diagnostic to include this information when appropriate.
The text was updated successfully, but these errors were encountered: