// RUN: %target-typecheck-verify-swift -warn-redundant-requirements // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -warn-redundant-requirements 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'}} // 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 {}