[SR-13999] Key path literal is not promoted to optional function argument #56393
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
expressions
Feature: expressions
key paths
Feature: key paths (both native and Objective-C)
literals
Feature → expressions: Literals such as an integer or string literal
swift 6.0
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
Environment
Swift 5.3
Additional Detail from JIRA
md5: a9f7396121fd5e36171f6af4efec596f
Issue Description:
Copy the following into a playground:
I'd expect the final lines to compile, but they do not.
The text was updated successfully, but these errors were encountered: