Skip to content

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

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 16, 2023

…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

@xedin
Copy link
Contributor Author

xedin commented Oct 16, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 17, 2023

@swift-ci please test Windows platform

…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
@xedin
Copy link
Contributor Author

xedin commented Oct 23, 2023

@swift-ci please test

@xedin xedin merged commit 3bb86f3 into swiftlang:main Oct 24, 2023
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