We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2947f75 + 33438bd commit 14db05eCopy full SHA for 14db05e
test/decl/protocol/conforms/circular_validation.swift
@@ -11,3 +11,8 @@ struct S : P { // expected-error {{type 'S' does not conform to protocol 'P'}}
11
static var x = 0 // expected-note {{candidate operates on a type, not an instance as required}}
12
var x = S.x // expected-note {{candidate references itself}}
13
}
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