Compiler loses ability to infer Root of KeyPath when it is Optional and Sendable #76716
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When you require a keypath to be Sendable using
& Sendable
and then make thatOptional
the compiler loses the ability to infer the root and theKeyPath
always needs to be fully qualified to compile.Reproduction
Expected behavior
The
Root
should be inferable even if the sendable keypath is optional.Environment
Tested with:
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.11 clang-1600.0.26.2)
Additional information
No response
The text was updated successfully, but these errors were encountered: