Skip to content

Commit 82aff15

Browse files
authored
Merge pull request #28340 from slavapestov/another-regression-test
Add a regression test for https://bugs.swift.org/browse/SR-10612
2 parents 6096b43 + fb581fd commit 82aff15

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
protocol P1: class {
4+
associatedtype P1P1: P1
5+
associatedtype P1AnyP2: AnyP2<P1P1>
6+
7+
var anyP2: P1AnyP2? { get set }
8+
}
9+
10+
protocol P2 {
11+
associatedtype P2P1: P1
12+
}
13+
14+
final class AnyP2<AP2P1: P1>: P2 {
15+
typealias P2P1 = AP2P1
16+
}

0 commit comments

Comments
 (0)