Skip to content

[Concurrency] Classes nested in actors are not semantically final. #72863

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
Apr 5, 2024

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 5, 2024

The check for actor methods in isSemanticallyFinal was accidentally kicking in for class members, which avoided Sendable checking on classes nested in actors.

Resolves: rdar://118904081

@hborla
Copy link
Member Author

hborla commented Apr 5, 2024

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Apr 5, 2024

@swift-ci please smoke test

Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, nice catch!

The check for actor methods in `isSemanticallyFinal` was accidentally
kicking in for class members, which avoided `Sendable` checking on
classes nested in actors.
@hborla hborla force-pushed the nested-sendable-class branch from 66b7863 to 537d7a5 Compare April 5, 2024 15:37
@hborla
Copy link
Member Author

hborla commented Apr 5, 2024

@swift-ci please smoke test

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.

3 participants