Skip to content

[5.7] [Sema] Diagnose 'nonisolated' attribute on wrapped properties #60499

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

theblixguy
Copy link
Collaborator

Description: Diagnose use of nonisolated on wrapped properties, because we currently do not support it. This is because the backing property is a stored var and so cannot be marked as nonisolated at the moment.

Risk: Low, adding a new diagnostic to disallow execution of code that is not safe
Review by: @xedin, @hborla
Testing: PR Testing
Original PR: #60475

@theblixguy theblixguy requested review from xedin and hborla August 10, 2022 21:39
@theblixguy theblixguy requested a review from a team as a code owner August 10, 2022 21:39
@theblixguy
Copy link
Collaborator Author

@swift-ci please test

@theblixguy theblixguy merged commit 26a1ae7 into swiftlang:release/5.7 Aug 11, 2022
@theblixguy theblixguy deleted the diagnose-nonisolated-on-wrapped-properties-5.7 branch August 11, 2022 01:07
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants