-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CSRanking] Fix func declaration ranking with default'ed parameters #13683
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
@jrose-apple you've added tests which are not ambiguous now, so wanted to get your option on these changes. |
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.
The changes look like an improvement, but I have to say that I'm bothered by isDeclAsSpecializedAs
having this logic at all. Can't we re-use the argument-matching logic from the solver?
@DougGregor Do you mean |
@DougGregor I've changed it to use |
I must have been very nervous when adding the fix-it about not wanting to change ranking too much (see #4785). It looks like I was just being cautious and didn't have any specific fears at the time, so if everyone's good with this then I'm happy to take the improvement! |
Ok, it looks like if we are not matching labels it doesn't really make much sense to use |
If default'ed parameters in one decl are intermixed with non-defaulted ones, skip claiming parameters in other decl at the same position. Resolves: rdar://problem/36226874.
@swift-ci please test |
@swift-ci please test source compatibility |
@swift-ci please test macOS platform |
If default'ed parameters in one decl are intermixed with non-defaulted
ones, skip claiming parameters in other decl at the same position.
Resolves: rdar://problem/36226874.