SR-5667 Type inference for Swift 4 KeyPaths fails within collections
Issue Description:
When parameter is a PartialKeyPath, and I pass in a keypath literal to the function compiler gives an error "Type of expression is ambiguous without more context"
Environment
Swift 5
Xcode Version 12.5 (12E262)
MacOS BigSur 11.3,
Additional Detail from JIRA
md5: 55307744ad03437b2338a3eca460a66f
duplicates:
Issue Description:
When parameter is a PartialKeyPath, and I pass in a keypath literal to the function compiler gives an error "Type of expression is ambiguous without more context"
func getSomethingFor(path: PartialKeyPath<Int>) {}
getSomethingFor(path: .magnitude) // Type of expression is ambiguous without more context
The text was updated successfully, but these errors were encountered: