Skip to content

Commit 14db05e

Browse files
authored
Merge pull request #23919 from jrose-apple/SR-9224
2 parents 2947f75 + 33438bd commit 14db05e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/decl/protocol/conforms/circular_validation.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ struct S : P { // expected-error {{type 'S' does not conform to protocol 'P'}}
1111
static var x = 0 // expected-note {{candidate operates on a type, not an instance as required}}
1212
var x = S.x // expected-note {{candidate references itself}}
1313
}
14+
15+
// FIXME: Lousy diagnostics on this case.
16+
protocol SR9224_Foo: SR9224_Foobar {} // expected-error 2 {{protocol 'SR9224_Foo' refines itself}}
17+
protocol SR9224_Bar: SR9224_Foobar {} // expected-error {{protocol 'SR9224_Bar' refines itself}} expected-note {{protocol 'SR9224_Bar' declared here}}
18+
typealias SR9224_Foobar = SR9224_Foo & SR9224_Bar

0 commit comments

Comments
 (0)