File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/decl/protocol/special/coding Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,12 @@ class C5 : Codable {
98
98
case c
99
99
}
100
100
101
+ // CHECK: error: class 'C5' has no initializers
102
+ // CHECK: note: stored property 'b' without initial value prevents synthesized initializers
103
+
101
104
// CHECK: error: type 'C5' does not conform to protocol 'Decodable'
102
105
// CHECK: note: protocol requires initializer 'init(from:)' with type 'Decodable'
103
106
// CHECK: note: cannot automatically synthesize 'Decodable' because 'b' does not have a matching CodingKey and does not have a default value
104
-
105
- // CHECK: error: class 'C5' has no initializers
106
- // CHECK: note: stored property 'b' without initial value prevents synthesized initializers
107
107
}
108
108
109
109
// Codable class with non-decoded property (which has no default value).
You can’t perform that action at this time.
0 commit comments