Skip to content

Commit 7bd0508

Browse files
committed
GSB: Add regression test for already-fixed crasher
1 parent 4de232e commit 7bd0508

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-swift-frontend -emit-ir %s
2+
3+
public class Base {}
4+
5+
public class Derived : Base {}
6+
7+
public protocol P {}
8+
9+
public class C : P {}
10+
11+
public class G<X : P, Y : Base> {}
12+
13+
extension G where X == C, Y == Derived {
14+
public func foo() {}
15+
}

0 commit comments

Comments
 (0)