You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Jan 3, 2019
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.CodableArea → standard library: `Codable` and co.compilerThe Swift compiler in itself
Hm. The way CodingKeys synthesis works is that it does a lookup first and only synthesizes a custom one if the look fails. In this case, that comes out to "lookup in Inner -> lookup in Outer -> synthesize in Outer" and we never get back to "synthesize in Inner". I think that means we should be doing a qualified lookup into the Self type, even though that's technically a breaking change.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.CodableArea → standard library: `Codable` and co.compilerThe Swift compiler in itself
Additional Detail from JIRA
md5: 905f4d7055e6d21048c58a6d805c48d7
Issue Description:
Referencing the compiler-generated
CodingKeys
enum within theinit
of a nestedDecodable
orEncodable
fails. For example:However, this works perfectly fine for objects conforming to
Codable
:When an explicitly-defined CodingKeys enum is provided, everything works as expected:
Possibly related to https://bugs.swift.org/browse/SR-5215
The text was updated successfully, but these errors were encountered: