Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0191-issue-51961.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
}