-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Unqualified lookup fixes, part 2 #19891
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
Unqualified lookup fixes, part 2 #19891
Conversation
fab39e4
to
6437a23
Compare
@nkcsgexi Please take a look at the swift-api-digester changes. |
if (Left->hasDefaultArgument() != Right->hasDefaultArgument()) | ||
return false; | ||
if (Left->getParamValueOwnership() != Right->getParamValueOwnership()) | ||
return false; |
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.
Can we extract these two conditions along with "if (Left->hasAttributeChange(*Right)) return false;" to a static helper function so this type alias logic can be shared with other types? Otherwise LGTM
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.
Done
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 you!
6437a23
to
fa40c89
Compare
@swift-ci Please test |
@swift-ci Please test source compatibility |
@swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
Build failed |
Associated type inference can synthesize type aliases with the same name as a generic parameter. This is all fine since the underlying type of the alias is the generic parameter type, however it might have been synthesized in a constrained extension, resulting in bogus diagnostics that depend on the order in which declarations are type checked, which can vary between WMO and non-WMO, different batch mode settings, etc. Instead, let's just check the generic parameter list first. Fixes <rdar://problem/22587551>, <rdar://problem/44777661>.
fa40c89
to
8f97511
Compare
@swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
Build failed |
@shahmishal This problem is back... any ideas? |
@swift-ci Please test source compatibility |
2 similar comments
@swift-ci Please test source compatibility |
@swift-ci Please test source compatibility |
Fixes rdar://problem/22587551, rdar://problem/44777661.