Skip to content

Commit dea51d6

Browse files
authored
Merge pull request #29714 from slavapestov/regression-test-sr-9225
Add regression test for https://bugs.swift.org/browse/SR-9225
2 parents d2604a0 + 134cab6 commit dea51d6

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
struct S1: P1 {
2+
typealias P1_T1 = Int
3+
typealias P1_T2 = Range<Int>
4+
}
5+
6+
struct S2<P1_T1>: P1, P3 {
7+
typealias P1_T2 = [P1_T1]
8+
typealias P2_T = Int
9+
typealias P3_T = S1
10+
}
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 -primary-file %s %S/Inputs/sr9225-other.swift -module-name sr9225
2+
// RUN: %target-swift-frontend -emit-ir %s -primary-file %S/Inputs/sr9225-other.swift -module-name sr9225
3+
4+
protocol P1 {
5+
associatedtype P1_T1
6+
associatedtype P1_T2: Collection where P1_T2.Element == P1_T1
7+
}
8+
9+
protocol P2 {
10+
associatedtype P2_T
11+
}
12+
13+
protocol P3: P1, P2 {
14+
associatedtype P3_T: P1 where P3_T.P1_T2 == Range<P2_T>
15+
}

0 commit comments

Comments
 (0)