mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
603 B
Swift
20 lines
603 B
Swift
// RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
|
|
|
|
protocol P {}
|
|
|
|
struct S<T : P> {}
|
|
|
|
struct G<A, B> {}
|
|
|
|
// CHECK-LABEL: ExtensionDecl line={{.*}} base=G
|
|
// CHECK-NEXT: Generic signature: <A, B where A == S<B>, B : P>
|
|
extension G where A == S<B>, B : P {}
|
|
|
|
// CHECK-LABEL: ExtensionDecl line={{.*}} base=G
|
|
// CHECK-NEXT: Generic signature: <A, B where A == S<B>, B : P>
|
|
extension G where B : P, A == S<B> {}
|
|
|
|
// CHECK-LABEL: ExtensionDecl line={{.*}} base=G
|
|
// CHECK-NEXT: Generic signature: <A, B where A == S<B>, B : P>
|
|
extension G where B : P, A == S<B>, B : P {}
|