Skip to content

[SR-4774] Produce specific diagnostics when derivation of Encodable/Decodable fails #47351

@itaiferber

Description

@itaiferber
Previous ID SR-4774
Radar None
Original Reporter @itaiferber
Type Task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Task, DiagnosticsQoI
Assignee @itaiferber
Priority Medium

md5: 43131a9e5203c4a71fe2b46ea515a93a

Issue Description:

Right now, when derivation of Encodable/Decodable fails, we get a generic diagnostic of type 'T' does not conform to protocol 'Decodable', complaining that we're missing init(from🙂 and encode(to🙂. The TODO messages in lib/Sema/DerivedConformanceCodable.cpp need to be addressed to provide diagnostics which explain what went wrong.

Metadata

Metadata

Assignees

Labels

compilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions