blob: 96314c21630f361b1d3d10822d0f313dfed789b0 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown
class SynthesizedSuperclass : Codable {
let superValue: Double = .pi
}
// Classes which subclass something Codable should be able to override their
// superclasses methods (the methods should be visible in member lookup despite
// being synthesized).
class ExplicitSubclass : SynthesizedSuperclass {
required init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}