// RUN: %target-typecheck-verify-swift // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s protocol P1 { associatedtype A : P2 } protocol P2 { associatedtype A } // CHECK: Generic signature: func testTU(_: T, _: U) where T.A : P1, T.A.A == U, U.A : P1, U.A.A == T {} // expected-warning@-1 {{redundant conformance constraint 'U' : 'P2'}} // expected-note@-2 {{conformance constraint 'U' : 'P2' implied here}} // CHECK: Generic signature: func testU(_: T, _: U) where T.A : P1, T.A.A == U, U.A : P1, U.A.A == T {} // CHECK: Generic signature: func testT(_: T, _: U) where T.A : P1, T.A.A == U, U.A : P1, U.A.A == T {}