Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Dec 19, 2025

If the type of a key path literal is read-only due to setter
availability constraints but the context requires a writable
key path, let's produce a tailed availability diagnostic that
points to the offending setter.

Also match root/value of a key path even when superclass
check fails to propagate types and avoid extraneous issues
with generic parameter inference when the problem is related
to key path mutability or erasure.

Resolves: rdar://157249275

… mismatches

If the type of a key path literal is read-only due to setter
availability constraints but the context requires a writable
key path, let's produce a tailed availability diagnostic that
points to the offending setter.

Resolves: rdar://157249275
…k fails

This helps to propagate types bi-directionally and avoid extraneous
failures related to generic parameter inference when the real issue
is mutability or type erasure.
@xedin xedin requested review from a team, hborla and tshortli as code owners December 19, 2025 00:42
@xedin
Copy link
Contributor Author

xedin commented Dec 19, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Dec 19, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Dec 19, 2025

@swift-ci please test Windows platform

@xedin xedin merged commit fdcff3a into swiftlang:main Dec 20, 2025
5 checks passed
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