mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
448 B
Swift
19 lines
448 B
Swift
// RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
|
|
|
|
// https://github.com/apple/swift/issues/53495
|
|
|
|
protocol P1 {
|
|
associatedtype A
|
|
}
|
|
|
|
protocol P2 {
|
|
associatedtype C: P1
|
|
}
|
|
|
|
// CHECK-LABEL: .Q@
|
|
// CHECK-NEXT: Requirement signature: <Self where Self.[Q]X == Self.[Q]X.[P1]A, Self.[Q]Y : P2, Self.[Q]X.[P1]A == Self.[Q]Y.[P2]C>
|
|
protocol Q {
|
|
associatedtype X
|
|
associatedtype Y : P2 where X == X.A, X.A == Y.C
|
|
}
|