File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,12 @@ protocol CircularAssocTypeDefault {
25
25
associatedtype Z3 = Z2
26
26
// expected-note@-1{{protocol requires nested type 'Z3'; do you want to add it?}}
27
27
28
- associatedtype Z4 = Self . Z4 // expected-error{{associated type 'Z4' references itself}}
29
- // expected-note@-1{{type declared here}}
30
- // expected-note@-2{{protocol requires nested type 'Z4'; do you want to add it?}}
28
+ associatedtype Z4 = Self . Z4 // expected-error{{associated type 'Z4' is not a member type of 'Self'}}
29
+ // expected-note@-1{{protocol requires nested type 'Z4'; do you want to add it?}}
31
30
32
31
associatedtype Z5 = Self . Z6
33
32
// expected-note@-1{{protocol requires nested type 'Z5'; do you want to add it?}}
34
- associatedtype Z6 = Self . Z5
33
+ associatedtype Z6 = Self . Z5 // expected-error{{associated type 'Z5' is not a member type of 'Self'}}
35
34
// expected-note@-1{{protocol requires nested type 'Z6'; do you want to add it?}}
36
35
}
37
36
You can’t perform that action at this time.
0 commit comments