// 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: P { typealias A = G.A } struct S3 { } extension S3 where G == S2 { typealias B = G.A }