// RUN: %target-typecheck-verify-swift -warn-redundant-requirements // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s // FIXME(rqm-diagnostics): The redundant conformance warnings here should not be emitted, since // these requirements participate in conditional requirement inference. // CHECK-LABEL: conditional_requirement_inference_in_protocol.(file).Good@ // CHECK-LABEL: Requirement signature: protocol Good { associatedtype T : Equatable // expected-warning {{redundant conformance constraint 'Array' : 'Equatable'}} associatedtype U : Equatable where T == Array // expected-warning@-1 {{redundant conformance constraint 'Self.U' : 'Equatable'}} } // CHECK-LABEL: conditional_requirement_inference_in_protocol.(file).Bad@ // CHECK-LABEL: Requirement signature: protocol Bad { associatedtype T : Equatable // expected-warning {{redundant conformance constraint 'Array' : 'Equatable'}} associatedtype U where T == Array }