Skip to content

Commit c47683c

Browse files
committed
Add failing test case for GSB bug
1 parent d68388c commit c47683c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// RUN: not --crash %target-swift-frontend -typecheck %s
2+
3+
protocol P1 {
4+
associatedtype A2 : P2 where A2.A1 == Self
5+
}
6+
7+
protocol P2 {
8+
associatedtype A1 : P1 where A1.A2 == Self
9+
var property: Int { get }
10+
}
11+
12+
extension P2 {
13+
var property: Int { return 0 }
14+
}
15+
16+
class C1 : P1 {
17+
class A2 : P2 {
18+
typealias A1 = C1
19+
}
20+
}

0 commit comments

Comments
 (0)