Skip to content

Conversation

tshortli
Copy link
Contributor

Diagnose the availability of the specific accessors that are referenced implicitly via a key path reference. This causes setter availability to be diagnosed when passing a key path to a function that takes a WritableKeyPath.

Resolves rdar://157232221.

@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli
Copy link
Contributor Author

@swift-ci please test source compatibility

Diagnose the availability of the specific accessors that are referenced
implicitly via a key path reference. This causes setter availability to be
diagnosed when passing a key path to a function that takes a `WritableKeyPath`.

Resolves rdar://157232221.
@tshortli tshortli force-pushed the key-path-availability branch from 8d76643 to 2d5824e Compare August 27, 2025 14:58
@tshortli
Copy link
Contributor Author

The source compatibility failures appear to be due to existing issues.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge August 27, 2025 14:58
@tshortli tshortli merged commit 1e51d30 into swiftlang:main Aug 27, 2025
3 checks passed
@tshortli tshortli deleted the key-path-availability branch August 27, 2025 20:43
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