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

review: fix: Correct wrong switch behaviours (#5730, #5731) #5732

Merged
merged 11 commits into from
Feb 20, 2025

Conversation

Mr-Pine
Copy link
Contributor

@Mr-Pine Mr-Pine commented Apr 5, 2024

This adds fixes for #5730 and #5731
As a side effect of the fix for #5731 fall through cases now connect to the statement block of the next case instead of the following case expression, which in my opinion makes more sense anyway.

@Mr-Pine Mr-Pine force-pushed the controlflow-switch-fixes branch from 3f8f75b to af37cf6 Compare April 5, 2024 00:18
@Mr-Pine Mr-Pine force-pushed the controlflow-switch-fixes branch from af37cf6 to 13bde5c Compare April 5, 2024 10:24
@Mr-Pine Mr-Pine changed the title fix: Correct wrong switch behaviours (#5730, #5731) review: fix: Correct wrong switch behaviours (#5730, #5731) Apr 5, 2024
@Mr-Pine
Copy link
Contributor Author

Mr-Pine commented Apr 6, 2024

This is now also covered by #5742

@monperrus
Copy link
Collaborator

@Mr-Pine this is cool, how to complete it?

@Mr-Pine
Copy link
Contributor Author

Mr-Pine commented Feb 20, 2025

@monperrus I've merged master into this branch and resolved the conflicts. From my side this can be merged.
But as mentioned above, these changes would be made obsolete by #5742. That shouldn't stop this PR from being merged though.

@monperrus monperrus merged commit b2b160f into INRIA:master Feb 20, 2025
13 checks passed
@monperrus
Copy link
Collaborator

thanks a lot @Mr-Pine, and looking forward to #5742

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

Successfully merging this pull request may close these issues.

3 participants