You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
natecook1000 opened this issue
Jul 26, 2018
· 9 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfkey pathsFeature: key paths (both native and Objective-C)
SR-5667 Type inference for Swift 4 KeyPaths fails within collections
Issue Description:
I get an ambiguity error for the function with a PartialKeyPath parameter in this example:
structBar {
varbaz: Int
}
funcfull<T>(_k: KeyPath<Bar, T>) {}
full(\.baz) // okfuncpartial(_k: PartialKeyPath<Bar>) {}
partial(\.baz) // error: type of expression is ambiguous without more context
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfkey pathsFeature: key paths (both native and Objective-C)
Additional Detail from JIRA
md5: 5c1aa5f3211b0a576cba0956635705a1
duplicates:
Issue Description:
I get an ambiguity error for the function with a
PartialKeyPath
parameter in this example:The text was updated successfully, but these errors were encountered: