[SR-11653] Type inference fails when using dynamic keypath lookup syntax #54064
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
Additional Detail from JIRA
md5: dcc1d4badd52b9cb30098d0285a02e10
Issue Description:
The code sample below demonstrates an issue in Xcode 11.2 beta 2 where type inference works when a dynamic member subscript is written explicitly but fails when using dynamic key path lookup syntax. As a syntactic sugar feature, it is expected that type inference behaves identically to the explicitly written subscript.
The text was updated successfully, but these errors were encountered: