Skip to content

[TaskLocal] Carry access control modifiers into synthesized property #73475

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 3 commits into from
May 7, 2024

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented May 7, 2024

The new approach to @TaskLocal with macros missed to carry to the synthesized property the access control modifiers. which can be source breaking, accidentally making a $property internal when it must have been public or private etc.

Along the way, cleanup how we do this pattern, and avoid forming strings to create access control in the macro and fix it in other uses of this pattern.

Resolves rdar://127498720

ktoso added 3 commits May 7, 2024 15:24
This is to make sure the expanded macros can properly work with availability and values which may require availability
@ktoso
Copy link
Contributor Author

ktoso commented May 7, 2024

@swift-ci please smoke test

@ktoso ktoso merged commit 7224178 into swiftlang:main May 7, 2024
@ktoso ktoso deleted the wip-tasklocal-access-control branch May 7, 2024 11:13
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