Files
swift-mirror/validation-test/compiler_crashers_fixed/issue-51714.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

18 lines
494 B
Swift

// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/issue-51714-other.swift -module-name M
// RUN: %target-swift-frontend -emit-ir %s -primary-file %S/Inputs/issue-51714-other.swift -module-name M
// https://github.com/apple/swift/issues/51714
protocol P1 {
associatedtype P1_T1
associatedtype P1_T2: Collection where P1_T2.Element == P1_T1
}
protocol P2 {
associatedtype P2_T
}
protocol P3: P1, P2 {
associatedtype P3_T: P1 where P3_T.P1_T2 == Range<P2_T>
}