Skip to content

[SE-0306] Disallow actor inheritance from NSObject, but allow @objc actor #38249

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

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jul 3, 2021

Explanation: Allow an actor to be exposed to Objective-C via @objc without inheriting from NSObject, and remove the loophole that allowed actors to inherit from NSObject.
Scope: Affects actors that are exposed to Objective-C
Radar/SR Issue: rdar://78333614
Risk: Low.
Testing: PR testing and CI on main.
Original PR: #38246

…actor`.

Allow an actor to be exposed to Objective-C via `@objc` without
inheriting from `NSObject`, and remove the loophole that allowed
actors to inherit from `NSObject`.

Fixes rdar://78333614

(cherry picked from commit 6406f08)
@DougGregor DougGregor requested a review from a team as a code owner July 3, 2021 15:11
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please nominate

@DougGregor DougGregor merged commit b3efbc3 into swiftlang:release/5.5 Jul 7, 2021
@DougGregor DougGregor deleted the actor-objc-without-nsobject-5.5 branch July 7, 2021 23:45
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