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

Support JDT's implicit yield in switch statements #10059

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

niloc132
Copy link
Member

JDT generates a yield for arrow cases if the arrow points at a expression, even though the expression cannot be returned. Synthesize a block wrapping that expression as a statement, and add a break to the end of it.

Fixes #10044

JDT generates a yield for arrow cases if the arrow points at a
expression, even though the expression cannot be returned. Synthesize a
block wrapping that expression as a statement, and add a break to the
end of it.

Fixes gwtproject#10044
@niloc132 niloc132 added this to the 2.13 milestone Dec 13, 2024
@niloc132
Copy link
Member Author

Passing nightly CI run https://github.com/niloc132/gwt/actions/runs/12319013728

@niloc132 niloc132 requested a review from zbynek December 14, 2024 19:58
@niloc132 niloc132 merged commit 35c4666 into gwtproject:main Dec 19, 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
2 participants