Skip to content

Conversation

@tshortli
Copy link
Contributor

Control enforcement of member import visibility requirements via a new option, instead of piggy-backing on the existing IgnoreAccessControl option. Adopt the option when doing fallback lookups for unviable members so that the compiler can diagnose the reason that a member is inaccessible more reliably. Previously, with MemberImportVisibility enabled decls with the package access level could be mis-diagnosed as inaccessible due to their access level when really they were inaccessible due to a missing import.

Resolves rdar://131501862.

@tshortli tshortli force-pushed the member-import-visibility-package branch from 15ea21c to 32ed20d Compare July 11, 2024 01:26
Control enforcement of member import visibility requirements via a new option,
instead of piggy-backing on the existing IgnoreAccessControl option. Adopt the
option when doing fallback lookups for unviable members so that the compiler
can diagnose the reason that a member is inaccessible more reliably.
Previously, with MemberImportVisibility enabled decls with the package access
level could be mis-diagnosed as inaccessible due to their access level when
really they were inaccessible due to a missing import.

Resolves rdar://131501862.
@tshortli tshortli force-pushed the member-import-visibility-package branch from 32ed20d to d002da0 Compare July 11, 2024 05:57
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit 5d6f694 into swiftlang:main Jul 11, 2024
@tshortli tshortli deleted the member-import-visibility-package branch July 11, 2024 18:07
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