[SR-13442] Crash using unwrap (!) to refer to wrapped member on key path of optional root #55884
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
type checker
Area → compiler: Semantic analysis
Environment
Swift 5.3 Xcode 12 Beta 1
Additional Detail from JIRA
md5: ca2fc8d31331a56fdbd6606164c1a694
Issue Description:
Refering to wrapped members on a key path root inferred as optional using '?' works fine
But using '!' crashes the compiler
Reproducer
Stacktrace
The text was updated successfully, but these errors were encountered: