Skip to content

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

Merged
monperrus merged 11 commits intoINRIA:masterfrom
Mr-Pine:controlflow-switch-fixes
Feb 20, 2025
Merged

review: fix: Correct wrong switch behaviours (#5730, #5731)#5732
monperrus merged 11 commits intoINRIA:masterfrom
Mr-Pine:controlflow-switch-fixes

Conversation

@Mr-Pine
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Mr-Pine commented Apr 6, 2024

This is now also covered by #5742

@monperrus
Copy link
Copy Markdown
Collaborator

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

@Mr-Pine
Copy link
Copy Markdown
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
Copy Markdown
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