-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfderived conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomersimprovement
Description
Previous ID | SR-15271 |
Radar | rdar://83771311 |
Original Reporter | @CodaFi |
Type | Improvement |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Improvement, DiagnosticsQoI, StarterBug |
Assignee | None |
Priority | Medium |
md5: 3c54547b3d23d4952661aaf14230a55d
Issue Description:
Consider
struct Foo: Codable {
var bar: String
private enum CodingKeys: String, CodingKey {
case ba
}
}
What we should have is some kind of notes that explain that the manually-provided CodingKeys are insufficient to satisfy the ad-hoc "nested type requirement" of Codable because of the typo. Instead, all we say is that Foo doesn't conform to Codable.
Metadata
Metadata
Assignees
Labels
compilerThe Swift compiler itselfThe Swift compiler itselfderived conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesdiagnostics QoIBug: Diagnostics Quality of ImplementationBug: Diagnostics Quality of Implementationgood first issueGood for newcomersGood for newcomersimprovement