Skip to content

[6.2] Sema: Expand isolated conformance inference to consider conformances to inherited protocols #82384

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jun 20, 2025

6.2 cherry-pick of #82383

  • Description: This change expands isolated conformance inference to consider conformances to inherited protocols.

Otherwise, if PDerived inherits from P and P's requirements are witnessed by @MainActor-isolated members, we fail to infer @mainactor isolation on the conformance to PDerived, forcing the user to write an explicit @mainactor.

…to inherited protocols

Otherwise, if PDerived inherits from P and P's requirements are
witnessed by @MainActor-isolated members, we fail to infer
@mainactor isolation on the conformance to PDerived.

- Fixes swiftlang#82222.
- Fixes rdar://153219831.
@slavapestov slavapestov requested a review from a team as a code owner June 20, 2025 18:39
@slavapestov
Copy link
Contributor Author

@swift-ci Please 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.

1 participant