Skip to content

🍒[5.5][Concurrency] ban inheriting Actor explicitly by class #38095

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
Jun 25, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Jun 25, 2021

Explanation: Actors can only be expressed by the actor keyword. We still allowed a class to conform to Actor which is wrong because it cannot declare actor isolated members. This bans classes conforming to the actor protocol.
Reviewer: @DougGregor
Radar/SR Issue: rdar://79749091
Risk: Small.
Testing: PR testing and CI on main.
Original PR: #38050

@ktoso ktoso added the r5.5 label Jun 25, 2021
@ktoso ktoso requested a review from a team as a code owner June 25, 2021 00:02
@ktoso
Copy link
Contributor Author

ktoso commented Jun 25, 2021

@swift-ci please test

@ktoso ktoso requested a review from DougGregor June 25, 2021 00:03
@ktoso
Copy link
Contributor Author

ktoso commented Jun 25, 2021

@swift-ci please nominate

@ktoso ktoso merged commit 699e57b into swiftlang:release/5.5 Jun 25, 2021
@ktoso ktoso deleted the pick-ban-class-actor branch June 25, 2021 07:48
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 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.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants