// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -emit-ir %s // https://github.com/apple/swift/issues/53550 // CHECK: Requirement signature: public protocol VectorSpace { associatedtype Field: FieldAlgebra } // CHECK: Requirement signature: public protocol FieldAlgebra: VectorSpace where Self.Field == Self { associatedtype ComparableSubalgebra: ComparableFieldAlgebra static var zero: Self { get } } // CHECK: Requirement signature: public protocol ComparableFieldAlgebra: FieldAlgebra where Self.ComparableSubalgebra == Self { } // CHECK: Generic signature: public func test(_ f: F) { _ = F.ComparableSubalgebra.zero }