[SR-2326] bad type inference error with ternary operator and enums #44933
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
Apple Swift version 3.0-dev (LLVM 17c4c6cf7a, Clang 4ca9e01a7c, Swift 13a9908)
Additional Detail from JIRA
md5: 11e7790490ed6492b7bd5998006e8501
Issue Description:
The following program:
is problematic because it doesn't identify which enum foo and bar belong to. But the resulting error spew makes no sense, blaming the == operator:
The text was updated successfully, but these errors were encountered: