[SR-2302] Cannot infer type of .none
for optional error type
#44909
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
Environment
Swift 63a61e8
Additional Detail from JIRA
md5: 8bd4b26bbfdfc089b4cf747771048193
Issue Description:
Produces the error:
A workaround is to compare to `nil` instead:
The text was updated successfully, but these errors were encountered: