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
{{ message }}
Repository navigation
Non-overlapping equality not detected inside of pattern matching case statements. #14965
The docs for --strict-equality state that these kinds of always-false comparisons are checked, though it does not mention pattern matching specifically. Otherwise this is a feature request to support checks in pattern matching case statements.
Activity
hauntsaninja commentedon Jan 28, 2026
--warn-unreachabledoes the right thing here (and #20660 I think improves behaviour on some of your test cases)Improve reachability in narrowing logic (#20660)