Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 15, 2025

…quirements

KeyPath types now have conformance requirements placed on their Root and Value types which need to be checked even when there is a key path to function conversion involved, otherwise the solver would be accepting invalid code.

Note that without function conversion the requirements come from a type opened during assignment - https://github.com/swiftlang/swift/pull/80081/files.

Resolves: #84150

…quirements

`KeyPath` types now have conformance requirements placed on their
`Root` and `Value` types which need to be checked even when there
is a key path to function conversion involved, otherwise the solver
would be accepting invalid code.

Note that without function conversion the requirements come from
a type opened during assignment - https://github.com/swiftlang/swift/pull/80081/files.

Resolves: swiftlang#84150
@xedin
Copy link
Contributor Author

xedin commented Sep 15, 2025

@swift-ci please test

@xedin xedin merged commit 5207b0e into swiftlang:main Sep 15, 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.

Compiler crash when converting a KeyPath on a non-copyable type to a closure: "Invalid conformance in type-checked AST"
2 participants