Skip to content

Commit 3e1e9fa

Browse files
committed
Add regression test for fixed crasher
1 parent d2ada0d commit 3e1e9fa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
struct S<N> {}
4+
5+
protocol P {
6+
associatedtype A: P = Self
7+
static func f(_ x: A) -> A
8+
}
9+
10+
extension S: P where N: P {
11+
static func f<X: P>(_ x: X) -> S<X.A> where A == X, X.A == N {
12+
return S<X.A>()
13+
}
14+
}

0 commit comments

Comments
 (0)