Skip to content

Sema: Diagnose accessor exportability even if storage is unavailable #77207

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

Conversation

tshortli
Copy link
Contributor

It is invalid to reference an internal setter from a fragile function regardless of whether the storage is unavailable. The swiftinterface generated for this code would not typecheck since the setter is not known to exist outside the module.

It is invalid to reference an internal setter from a fragile function
regardless of whether the storage is unavailable. The swiftinterface generated
for this code would not typecheck since the setter is not known to exist
outside the module.
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge October 24, 2024 18:39
@tshortli tshortli merged commit 40f1556 into swiftlang:main Oct 24, 2024
3 checks passed
@tshortli tshortli deleted the inaccessable-accessor-unavailable-storage branch October 24, 2024 22:50
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