[SR-12991] Type checker doesn't take context from "<key path expr> as <function type>" - Examples in Key Path Expressions as Functions proposal don't compile #55436
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: c64fc41feeb4a1205ee0f1de49f07037
cloned from:
is duplicated by:
as
to coerce KeyPath to functionIssue Description:
The proposal which was Implemented in Swift 5.2 for Key Path Expressions as Functions has examples which do not compile. https://github.com/apple/swift-evolution/blob/master/proposals/0249-key-path-literal-function-expressions.md
When run in a playground:
[Edited to remove symptoms of a separate bug tracked as SR-12897.]
The text was updated successfully, but these errors were encountered: