Files
swift-mirror/test/Generics/rdar116434843.swift
2023-12-07 19:27:59 -05:00

27 lines
307 B
Swift

// RUN: %target-typecheck-verify-swift
protocol P {}
struct X: P {}
protocol Q {
typealias A = X
}
protocol R {
associatedtype A: Q
associatedtype B: P
}
protocol S {}
extension S where Self: R {
typealias B = Self.A.A
}
typealias T<A: Q> = G<A>.B
struct G<A: Q>: R, S {
typealias A = A
}