[SR-11184] Cannot assign to key path with IUO base #53581
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
key paths
Feature: key paths (both native and Objective-C)
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.1-dev (LLVM 200186e28b, Swift ea894d08b8)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 2cd9f154acb864bfc041d6c1d4aabac5
Issue Description:
The following cases fail to compile:
However they really should all compile.
If the parameter
c
is changed from beingC!
toC?
, then the latter two cases correctly compile.The text was updated successfully, but these errors were encountered: