Skip to content

Commit cf47090

Browse files
committed
Add testcase for fixed circular reference issue: rdar://89921930
1 parent 5ab8e08 commit cf47090

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/Generics/rdar89921930.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %target-swift-frontend -typecheck -verify %s
2+
3+
// This used to hit a circularity.
4+
5+
public protocol P {}
6+
7+
public struct G<T : P> {}
8+
9+
public typealias A<T : P> = G<T>
10+
11+
public protocol Circle {
12+
associatedtype X : P
13+
associatedtype Y where Y == A<X>
14+
}
15+
16+

0 commit comments

Comments
 (0)