Files
swift-mirror/test/Generics/redundant_requirement_self_conforming_protocol.swift
2022-05-10 12:56:17 -04:00

9 lines
358 B
Swift

// RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
struct G<T> {}
// CHECK-LABEL: Generic signature: <T where T == Error>
extension G where T : Error, T == Error {}
// expected-warning@-1 {{redundant conformance constraint 'any Error' : 'Error'}}