mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
23 lines
295 B
Swift
23 lines
295 B
Swift
// RUN: %target-swift-frontend -typecheck %s
|
|
|
|
// https://github.com/apple/swift/issues/51961
|
|
|
|
protocol P {
|
|
associatedtype A
|
|
}
|
|
|
|
struct S1: P {
|
|
typealias A = Int
|
|
}
|
|
|
|
struct S2<G: P>: P {
|
|
typealias A = G.A
|
|
}
|
|
|
|
struct S3<G: P> {
|
|
}
|
|
|
|
extension S3 where G == S2<S1> {
|
|
typealias B = G.A
|
|
}
|