reportMatchNotExhaustive
false positive for tuples
#8322
Closed
InSyncWithFoo
started this conversation in
General
Replies: 1 comment 2 replies
-
This is expected behavior, not a bug. Match exhaustion is detected via type narrowing. In your example, the first case statement (with pattern |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minimal reproducible example (playground):
This is almost identical to #6843, but the reason for its closure doesn't apply here. Is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions