Skip to content

[5.10][TypeChecker] Disallow use of global actor attributes of setters, add… #69369

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 1 commit into from
Oct 24, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Oct 24, 2023

…ressors, and observers

Cherry-pick of https://github.com/apple/swift/pull/69219/commits


  • Explanation:

No other accessor besides a getter could be marked as async and adding @mainactor global accessor on setters and other accessor kinds would mean disconnecting them from a getter in terms of isolation, so let's keep things simple and allow global actor attribute on getters and/or enclosing declaration only.

(cherry picked from commit a71d62c)

…ressors, and observers

No other accessor besides a getter could be marked as async and
adding @mainactor global accessor on setters and other accessor
kinds would mean disconnecting them from a getter in terms of
isolation, so let's keep things simple and allow global actor
attribute on getters and/or enclosing declaration only.

Resolves: rdar://99281333
(cherry picked from commit a71d62c)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.10 labels Oct 24, 2023
@xedin xedin requested a review from hborla October 24, 2023 16:43
@xedin xedin requested a review from a team as a code owner October 24, 2023 16:43
@xedin
Copy link
Contributor Author

xedin commented Oct 24, 2023

@swift-ci please test

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.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants