-
-
Notifications
You must be signed in to change notification settings - Fork 352
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: fix incorrect parent for type reference of a CtParameter #3696
fix: fix incorrect parent for type reference of a CtParameter #3696
Conversation
Thanks @andrewbwogi for the work on this fix. Could you have a look at the CI failures? |
if (parameter.getType() == null) { | ||
ref.setType(parameter.getType()); | ||
} else { | ||
ref.setType(parameter.getType().clone()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This solution works but it hides an implicit difference between ordinary parameters and parameters in lambda expressions. Is it better to create a CtLambdaParameter class?
It would probably be overkill. Do you mean that we don't have a fully backward compatible fix for now? |
The fix only expands information in the AST so it should be backwards compatible. |
Great, thanks @andrewbwogi ! In Spoon, we always have a one line contract in natural language for each test:
Could you add the contract? Then we merge! |
Thanks @andrewbwogi |
close #3671