[SR-14125] Provide specialized fix-its for protocol conformance errors in common cases #56506
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 04c805de4b322dab5e8bba333a62556a
Issue Description:
This offers to add protocol stubs, which is quite likely the wrong thing to do. Instead, it should be offering a fix-it that deletes the
: Equatable
and adds an extension for the synthesis:Similarly, in the case where you have code like:
This also offers to add protocol stubs, which IMO is the unlikely solution if the non-conforming property is defined in the same module. Rather, it should offer to add
: Equatable
toS
's declaration.The text was updated successfully, but these errors were encountered: