[SR-12438] Poor diagnostic for unapplied operator reference to == #54877
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 5.3-dev (LLVM d59da0c, Swift 5af04d3)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 1cd198317940a717c3181c549aee79a2
Issue Description:
The following produces a poor diagnostic:
The problem is we can end up with a mix of argument mismatch fixes for the first argument, in addition to conformance fixes for the second argument. The argument mismatch fixes make sense in isolation (when we're binding concrete overloads of
==
), but we need to find a sensible way of preferring theEquatable
conformance mismatch fix in this case such that we complain aboutError
not beingEquatable
.The text was updated successfully, but these errors were encountered: