Skip to content

Commit 8d11ce1

Browse files
committed
Minor test case update due to cycle detection.
1 parent 5e0a7fd commit 8d11ce1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/decl/protocol/req/recursion.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ protocol CircularAssocTypeDefault {
2525
associatedtype Z3 = Z2
2626
// expected-note@-1{{protocol requires nested type 'Z3'; do you want to add it?}}
2727

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?}}
3130

3231
associatedtype Z5 = Self.Z6
3332
// 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'}}
3534
// expected-note@-1{{protocol requires nested type 'Z6'; do you want to add it?}}
3635
}
3736

0 commit comments

Comments
 (0)