Skip to content

Commit 24fffb5

Browse files
committed
+1 testcase
Swift SVN r30188
1 parent e1ef962 commit 24fffb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/SILPasses/definite_init_diagnostics.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,5 +1301,9 @@ extension ProtocolInitTest {
13011301
i = ii // expected-error {{'self' used before chaining to another self.init requirement}}
13021302
self = unsafeBitCast(0, Self.self)
13031303
}
1304+
1305+
init(test4 ii: Int) {
1306+
i = ii // expected-error {{'self' used before chaining to another self.init requirement}}
1307+
} // expected-error {{protocol extension initializer never chained to 'self.init'}}
13041308
}
13051309

0 commit comments

Comments
 (0)