Decodable warning unexpectedly silenced by CodingKeys presence

it seems if you declare the Codable conformance via an extension you'll still get the warnings:

struct Test {
    var foo = 1
    let bar = 2 // ⚠️
}

extension Test: Codable {}

i haven't thought about it enough to have an opinion on whether the diagnostic makes sense to always emit, but it is a bit surprising that the behavior isn't consistent.

1 Like