mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
347 B
Swift
16 lines
347 B
Swift
// RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures 2>&1 | %FileCheck %s
|
|
|
|
struct C {}
|
|
|
|
protocol P {
|
|
associatedtype A
|
|
}
|
|
|
|
struct G<A>: P {}
|
|
|
|
struct Body<T: P> where T.A == C {
|
|
// CHECK-LABEL: .init(_:)@
|
|
// CHECK-NEXT: <T, U where T == G<C>, U : P, U.[P]A == C>
|
|
init<U: P>(_: U) where T == G<T.A>, U.A == T.A {}
|
|
}
|