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