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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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