Skip to content

Commit ea9d390

Browse files
committed
Fix one last test for 5.5
1 parent bd7e3ab commit ea9d390

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/decl/protocol/req/recursion.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ public struct S<A: P> where A.T == S<A> { // expected-error {{circular reference
4949
// expected-note@-3 {{while resolving type 'S<A>'}}
5050
func f(a: A.T) {
5151
g(a: id(t: a)) // `a` has error type which is diagnosed as circular reference
52+
// expected-error@-1{{conflicting arguments to generic parameter 'T' ('A.T' (associated type of protocol 'P') vs. 'S<A>')}}
5253
_ = A.T.self
5354
}
5455

5556
func g(a: S<A>) {
5657
f(a: id(t: a))
57-
// expected-error@-1 {{cannot convert value of type 'S<A>' to expected argument type 'A.T'}}
58+
// expected-error@-1 {{conflicting arguments to generic parameter 'T' ('S<A>' vs. 'A.T' (associated type of protocol 'P')}}
5859
_ = S<A>.self
5960
}
6061

0 commit comments

Comments
 (0)