We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f26e93 commit 134cab6Copy full SHA for 134cab6
validation-test/compiler_crashers_2_fixed/Inputs/sr9225-other.swift
@@ -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
validation-test/compiler_crashers_2_fixed/sr9225.swift
@@ -0,0 +1,15 @@
+// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/sr9225-other.swift -module-name sr9225
+// RUN: %target-swift-frontend -emit-ir %s -primary-file %S/Inputs/sr9225-other.swift -module-name sr9225
+protocol P1 {
+ associatedtype P1_T1
+ associatedtype P1_T2: Collection where P1_T2.Element == P1_T1
+protocol P2 {
+ 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