Unexpected missing exhaustiveness complaint #64
Replies: 1 comment
-
Ah, nevermind. It seems like this package only performs exhaustiveness checks on enums, not interfaces implemented by a given value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following code
I did not add the
case VariantB:
to the switch, thus I expectedexhaustive
to complain about that, but it didn't. Am I missing something? FWIW I am applying the pattern "Solution 1: type switch" from https://stackoverflow.com/a/72667242/8401696.Beta Was this translation helpful? Give feedback.
All reactions