Skip to content

Commit 48bee38

Browse files
committed
Add regression test for rdar://48994748
1 parent f173124 commit 48bee38

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: not %target-swift-frontend -typecheck %s
2+
3+
protocol P {
4+
associatedtype T
5+
}
6+
7+
class G<T : P> {
8+
init(_: T.T) {}
9+
}
10+
11+
class Sub : G<S> {}
12+
13+
struct S : P {}
14+
15+
Sub()

0 commit comments

Comments
 (0)