-
-
Notifications
You must be signed in to change notification settings - Fork 353
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 handling of intersection types for lambda parameters #3521
Conversation
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.
Thanks a lot for your contribution! See review comments :)
if (!(lambdaTypeRef instanceof CtIntersectionTypeReference)) { | ||
return getOverriddenAux(lambdaTypeRef); | ||
} else { | ||
CtElement parent = lambdaTypeRef.getParent(); |
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.
refactor the else block in getOverriddenMethodForIntersectionType
?
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.
Thanks a lot for the update. Last thing: could you rename getOverriddenAux into getOverriddenMethodForNormalType? Thanks!
from getOverriddenMethodAux to getOverriddenMethodForIntersectionType
Thanks. We have a few checkstyle problems. |
LGTM! @monperrus do you want to merge? |
Yes, thanks a lot @quentinLeDilavrec and @nharrand for the polishing commit! |
#3520