[SR-12908] Enum comparison diagnostics not helpful #55354
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
Xcode 11.5
Additional Detail from JIRA
md5: 8da8c52d1253a9ea892c633357d60129
Issue Description:
Not a bug, but maybe an enum usability enhancement via better diagnostics. I went through some head scratching trying to figure out how to use an if statement to check a Result (or any enum with an associated value) for success.
The message that mentioned DispatchTimeoutResult seems out of left field, but neither message was actually helpful.
Thanks
The text was updated successfully, but these errors were encountered: