[SR-11453] Unhelpful error message when equating an optional enum that does not conform to Equatable #53854
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 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Additional Detail from JIRA
md5: 8a3854ab7fb3ac4be15e8e76981b5840
Issue Description:
The following code is incorrect, because `E` does not explicitly declare a conformance to `Equatable`:
However, the error message emitted by `swiftc` is the following, which does not really help in finding the root cause:
The text was updated successfully, but these errors were encountered: