mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
377 B
Swift
21 lines
377 B
Swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
|
|
|
|
protocol P1 {
|
|
associatedtype T
|
|
}
|
|
|
|
protocol P2 {
|
|
associatedtype T : P3
|
|
}
|
|
|
|
protocol P3 {}
|
|
|
|
struct G<T : P3> : P2 {}
|
|
|
|
extension P1 where T : P2 {
|
|
// CHECK-LABEL: .foo@
|
|
// CHECK-NEXT: <Self, X where Self : P1, X : P3, Self.[P1]T == G<X>>
|
|
func foo<X>(_: X) where T == G<X> {}
|
|
}
|
|
|