-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch over enum not behaving properly #838
Comments
This should now be working, try it out! |
In the first case, I am expecting an error as the switch is not exhaustive and there is no default case.
|
Ah, I see, I know what you want and you're right. |
Test it now. |
Funny story: in the switch tests I actually had test for (1), but those were commented out as I hadn't implemented the check when I wrote the tests. |
All good! |
Switches over enums should be exhaustive except if default is used.
The following should return an error when compiled as the switch over the enum is missing the RUNNING value.
The following should compile but currently returns an error about a missing return.
The text was updated successfully, but these errors were encountered: