Skip to content

Commit e22acf6

Browse files
committed
wut
1 parent 49b0d2d commit e22acf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/decl/protocol/special/coding/class_codable_failure_diagnostics.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ class C5 : Codable {
9898
case c
9999
}
100100

101+
// CHECK: error: class 'C5' has no initializers
102+
// CHECK: note: stored property 'b' without initial value prevents synthesized initializers
103+
101104
// CHECK: error: type 'C5' does not conform to protocol 'Decodable'
102105
// CHECK: note: protocol requires initializer 'init(from:)' with type 'Decodable'
103106
// 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
107107
}
108108

109109
// Codable class with non-decoded property (which has no default value).

0 commit comments

Comments
 (0)