// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s // https://github.com/apple/swift/issues/58067 // CHECK-LABEL: .P1@ // CHECK-NEXT: Requirement signature: public protocol P1 { associatedtype X: P1 where X.X == X } // CHECK-LABEL: .P2@ // CHECK-NEXT: Requirement signature: public protocol P2: Collection, P1 where Element: P1, X == Z.Y { associatedtype Y: P3 associatedtype Z: P2 } // CHECK-LABEL: .P3@ // CHECK-NEXT: Requirement signature: public protocol P3: P2 { associatedtype T: P2 }