Skip to content

[ObjC] Only Diagnose Selector Conflicts From Classes #30274

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

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Mar 7, 2020

Clang 1200 appears to be returning us results from protocol
declarations when we run lookup for an Objective-C selector. This code
path can therefore see protocol requirements, and would erroneously
diagnose witnesses from Swift subclasses of Objective-C classes
as an attempt to conflict with the requirement in the
protocol itself.

This fix is super narrow to try to unblock our builds. Tests will follow
once I can reduce the issue.

Resolves rdar://60005962

Clang 1200 appears to be returning us results from protocol
declarations when we run lookup for an Objective-C selector. This code
path can therefore see protocol requirements, and would erroneously
diagnose witnesses from Swift subclasses of Objective-C classes
as an attempt to conflict with the requirement in the
protocol itself.

This fix is super narrow to try to unblock our builds. Tests will follow
once I can reduce the issue.

Resolves rdar://60005962
@CodaFi CodaFi requested a review from DougGregor March 7, 2020 02:36
@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 7, 2020

@swift-ci please smoke test and merge

@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 7, 2020

@swift-ci please smoke test Linux platform

@CodaFi
Copy link
Contributor Author

CodaFi commented Mar 7, 2020

⛵️

@CodaFi CodaFi merged commit 9046799 into swiftlang:master Mar 7, 2020
@CodaFi CodaFi deleted the the-mac-in-the-mirror branch March 7, 2020 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant