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

[BUG] Match catch all statement #45

Open
simonegazza opened this issue Jul 22, 2022 · 0 comments
Open

[BUG] Match catch all statement #45

simonegazza opened this issue Jul 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simonegazza
Copy link
Collaborator

simonegazza commented Jul 22, 2022

Description
Currently, there is no support for catch alla statement inside a match (i.e. _ guard inside a branch).

Expected behavior
This catch-all statement in match should be the entry of each statement if any other case in the match is descarded.

Suggested implementation
The problem needs further analysis but it is probably enough to simply rewrite the guard as a true statement evaluation.

@simonegazza simonegazza added the bug Something isn't working label Jul 22, 2022
@simonegazza simonegazza self-assigned this Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant