[SR-6994] Bad diagnostic with unrecognized enum case #49542
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 4.1 (swiftlang-902.0.38 clang-902.0.31)
Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Additional Detail from JIRA
md5: ebd3b2edbb1414b07de21ce24f775969
Issue Description:
This diagnostic is wrong no matter what's wrong with the passed value. For example, getting the label of a case wrong fails in the same way:
The text was updated successfully, but these errors were encountered: