mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
494 B
Swift
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>
|
|
}
|