Skip to content

Sema: Improve MemberImportVisibility diagnostics for cross import overlays #80972

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

When MemberImportVisibility is enabled and a declaration from a cross import overlay is diagnosed because it has not been imported, suggest imports of the declaring and bystanding modules instead of the cross import overlay module (which is an implementation detail).

Resolves rdar://149307959.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

…rlays.

When `MemberImportVisibility` is enabled and a declaration from a cross import
overlay is diagnosed because it has not been imported, suggest imports of the
declaring and bystanding modules instead of the cross import overlay module
(which is an implementation detail).

Resolves rdar://149307959.
@tshortli tshortli requested a review from nkcsgexi April 21, 2025 23:51
@tshortli tshortli force-pushed the member-import-visibility-cross-import-overlay branch from 296a8a3 to 9e67cf0 Compare April 21, 2025 23:52
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Linux

@swiftlang swiftlang deleted a comment from bnbarham Apr 22, 2025
@swiftlang swiftlang deleted a comment from bnbarham Apr 22, 2025
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test Windows

@tshortli tshortli merged commit fe79c40 into swiftlang:main Apr 23, 2025
3 checks passed
@tshortli tshortli deleted the member-import-visibility-cross-import-overlay branch April 23, 2025 01:29
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.

2 participants