[SR-6801] Bad diagnostic when attempting to use automatically implemented Equatable implementation #49350
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-dev (LLVM ef53654946, Clang f7df1e5a04, Swift 831b78c)
Additional Detail from JIRA
md5: 95c96a6703b3b07a8f00dd5906ce0d72
Issue Description:
Consider this:
Because B isn't marked as Equatable, the diagnostic you get is:
Type 'A' does not conform to protocol 'Equatable', and only a fix it to implement it by hand.
It would be extremely useful to know which types inside are preventing the automatic synthesis.
Also, the diagnostic includes literally every == implementation in my project, which is the bug I filed almost a year ago SR-4318.
The text was updated successfully, but these errors were encountered: