[SR-12399] Bad diagnostic when failing to unwrap an optional #54837
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.3-dev (LLVM fa328ef, Swift de46690)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 893b2bc146886084679b87f760198979
Issue Description:
For the following:
We emit the diagnostics:
We should instead provide an optional unwrap diagnostic on
x
.The text was updated successfully, but these errors were encountered: