Skip to content
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 fall-through #638

Closed
Ralle opened this issue Oct 18, 2019 · 3 comments
Closed

Switch fall-through #638

Ralle opened this issue Oct 18, 2019 · 3 comments

Comments

@Ralle
Copy link

Ralle commented Oct 18, 2019

When I use switch statements, I kind of want to express that only the options in the switch are allowed. In case of anything else, I want kaitat to throw an exception.
This could be expressed this way:
_: error

@KOLANICH
Copy link

#435 #81

@Ralle
Copy link
Author

Ralle commented Oct 20, 2019

I did my searching but your issues just let me find an exact match: #208

@GreyCat
Copy link
Member

GreyCat commented Oct 20, 2019

@Ralle Thanks for sorting this one, I'll mark this one as duplicate of #208.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants