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

Fix default case not always being last in switch statements #391

Conversation

coehlrich
Copy link
Contributor

reorders the cases so that the default case is always last because if a case pattern or null literal is used then the default case (if present) must be last to successfully compile.

Copy link
Member

@jaskarth jaskarth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good, thanks a lot!

@jaskarth jaskarth merged commit 84cf6f0 into Vineflower:develop/1.11.0 May 20, 2024
4 checks passed
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.

2 participants