[SR-11902] Improve Error Message for Auto-synthesized Equatable Conformance on Classes #54319
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 45d88fe5e23eebe7be372cd9482e022c
Issue Description:
Equatable Synthesis is currently restricted to structs and enums chiefly because inheritance complicates our efforts here enormously. We currently don't surface this fact when a class is declared without the == value witness:
We could offer a note that describes the reason we can't offer this conformance automatically in addition to the protocol stubs notes.
The place to do this would be `DerivedConformance::diagnoseFailedDerivation`.
The text was updated successfully, but these errors were encountered: