mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
394 B
Swift
9 lines
394 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// 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 'T' : 'Error'}}
|
|
// expected-note@-2 {{conformance constraint 'T' : 'Error' implied here}} |