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 removal of this cleanup to avoid forward field refs in lambdas #1212

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

jjohnstn
Copy link
Contributor

What it does

Fixes code error caused by "remove this" cleanup removing a this specifier for a forward referenced field in a lambda expression.

How to test

See issue or new test case.

Author checklist

@jjohnstn jjohnstn self-assigned this Feb 16, 2024
@jjohnstn jjohnstn added the bug Something isn't working label Feb 16, 2024
@jjohnstn jjohnstn added this to the 4.32 M1 milestone Feb 16, 2024
- fixes eclipse-jdt#1211
- add check for a field reference in a lambda in a field initializer
  in which case, skip
- add new test to CleanUpTest1d8
@jjohnstn jjohnstn merged commit bef8bb1 into eclipse-jdt:master Mar 9, 2024
9 checks passed
@jjohnstn jjohnstn deleted the thiserror branch March 9, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not remove this for lambda forward field reference
1 participant