File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments