// RUN: %target-swift-frontend -debug-generic-signatures -typecheck %s 2>&1 | %FileCheck %s // https://github.com/apple/swift/issues/52042 protocol R {} protocol Q { associatedtype Assoc } // CHECK-LABEL: .P1@ // CHECK-LABEL: Requirement signature: protocol P1 { associatedtype T where T == U.U associatedtype U : P1, Q where U.Assoc : R, U == T.U } // CHECK-LABEL: .P2@ // CHECK-LABEL: Requirement signature: protocol P2 { associatedtype T : P2 where T == U.U associatedtype U : P2, Q where U.Assoc : R, U == T.U } // CHECK-LABEL: .P3@ // CHECK-LABEL: Requirement signature: protocol P3 { associatedtype T : Q where T.Assoc : R, T == U.U associatedtype U : P3 where U == T.U } // CHECK-LABEL: .P4@ // CHECK-LABEL: Requirement signature: protocol P4 { associatedtype T : P4, Q where T.Assoc : R, T == U.U associatedtype U : P4 where U.Assoc : R, U == T.U }