Skip to content

🍒 [5.7] CS: optional storage key path components are read-only #42384

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

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented Apr 15, 2022

@AnthonyLatsis AnthonyLatsis requested a review from a team as a code owner April 15, 2022 04:20
@jckarter
Copy link
Contributor

@swift-ci Please test

@jckarter
Copy link
Contributor

@swift-ci Please test macOS

@jckarter jckarter merged commit 9d26a60 into swiftlang:release/5.7 Apr 15, 2022
@AnthonyLatsis AnthonyLatsis deleted the 5.7-swift-keypath-objc-optional-component branch April 16, 2022 01:49
@AnthonyLatsis
Copy link
Collaborator Author

Thanks!

AnthonyLatsis added a commit to AnthonyLatsis/swift that referenced this pull request Apr 20, 2022
…s to `optional` requirements

Stop pretending that an optional requirement is immutable via the `StorageImplInfo` request.
This approach has lead astray the conformance checker and might have had a negative impact
on other code paths that expect `isSettable` or `supportsMutation` to mean "has a setter".
Also, this does not work for imported foreign declarations, since they bypass the request.
Instead, use a forwarding `AbstractStorageDecl::isSettableInSwift` method that special-cases
optional requirements. This is a follow-up fix for a regression caused by swiftlang#42384.
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 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.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants