Skip to content

ClangImporter: Ignore missing imports in SwiftDeclConverter::recordObjCOverride() #78265

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

tshortli
Copy link
Contributor

recordObjCOverride() records semantic overrides for imported Obj-C methods. Since these methods are imported from a different language, it doesn't make sense to enforce Swift's member import visibility rules when performing lookups to find overridden methods. Doing so caused the Constrain Solver to lack important information needed to eliminate overloads, resulting in erroneous ambiguities.

Resolves rdar://141636723.

…jCOverride().

`recordObjCOverride()` records semantic overrides for imported Obj-C methods.
Since these methods are imported from a different language, it doesn't make
sense to enforce Swift's member import visibility rules when performing lookups
to find overridden methods. Doing so caused the Constrain Solver to lack
important information needed to eliminate overloads, resulting in erroneous
ambiguities.

Resolves rdar://141636723.
@tshortli tshortli force-pushed the member-import-visibility-imported-objc-overrides branch from 9334a02 to 94e678d Compare December 18, 2024 16:34
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge December 18, 2024 18:12
@tshortli tshortli merged commit 2571e05 into swiftlang:main Dec 18, 2024
3 checks passed
@tshortli tshortli deleted the member-import-visibility-imported-objc-overrides branch December 18, 2024 21:04
Steelskin added a commit to Steelskin/swift that referenced this pull request Dec 20, 2024
…t-visibility-imported-objc-overrides"

This reverts commit 2571e05, reversing
changes made to 6c8b958.
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.

3 participants