Skip to content

Commit 0f1ac21

Browse files
authored
Merge pull request #17739 from slavapestov/fixed-crasher-testcase
Add test case for crasher that's already fixed on master
2 parents 17e6c58 + a782096 commit 0f1ac21

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: %target-swift-frontend %s -emit-ir
2+
3+
protocol X {
4+
associatedtype R : Y
5+
}
6+
7+
protocol Y {
8+
associatedtype Q : X where Q.R == Self
9+
}
10+
11+
struct B : Y {
12+
typealias Q = L<B>
13+
}
14+
15+
struct L<V : Y> : X {
16+
typealias R = V
17+
}

0 commit comments

Comments
 (0)