[SR-5865] Key path expression is "ambiguous without more context" #48435
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Xcode 9 beta 6 (9M214v)
macOS 10.13 Beta 9 (17A360a)
Additional Detail from JIRA
md5: af136a99619be2c3353e5e9d117d7e3d
duplicates:
is duplicated by:
Issue Description:
The expression
"Hello"[keyPath: .count]
returns an error on the key path argument: type of expression is ambiguous without more context. Both"Hello".count
and"Hello"[keyPath: \String.count]
work.SR-5295 is another key-path-related issue that produces the same error message, but it doesn't look like the two are related.
The text was updated successfully, but these errors were encountered: