-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: make vals created in desugaring of n-ary lambdas non-synthetic #23896
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
Conversation
ValDef(param.name, param.tpt, selector(idx)) | ||
.withSpan(param.span) | ||
.withAttachment(UntupledParam, ()) | ||
.withFlags(Synthetic) |
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.
@jchyb could this cause any issue for coverage? I think we were discussing that with @kasiaMarek
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.
I don't think it will make any difference. We recently removed filtering out Synthetic calls for methods (they caused issues for case classes, where most used methods are synthetic), but I don't think anything like that has existed for vals (I suspect we will just get more coverage tags than necessary, but we don't necessarily need the Synthetic flag to be there to be able to fix that).
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!
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.
Looks good then, thanks! Do you want to check something more before merging?
…23896) resolves: #16110 resolves: scalameta/metals#7594 [Cherry-picked 5f470ea]
…cala#23896) resolves: scala#16110 resolves: scalameta/metals#7594 [Cherry-picked 5f470ea]
resolves: #16110
resolves: scalameta/metals#7594