Files
swift-mirror/test/Generics/issue-53495.swift

19 lines
448 B
Swift

// RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// https://github.com/apple/swift/issues/53495
protocol P1 {
associatedtype A
}
protocol P2 {
associatedtype C: P1
}
// CHECK-LABEL: .Q@
// CHECK-NEXT: Requirement signature: <Self where Self.[Q]X == Self.[Q]X.[P1]A, Self.[Q]Y : P2, Self.[Q]X.[P1]A == Self.[Q]Y.[P2]C>
protocol Q {
associatedtype X
associatedtype Y : P2 where X == X.A, X.A == Y.C
}