blob: df27aa80c6f950f99715b17055da6bbe4f011119 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift %s
struct S {}
protocol P {
typealias A<T> = A_<T, Self>
}
struct A_<T, P> {}
extension S {
subscript<T : P, U>(_: T, _: KeyPath<T, T.A<U>>) -> U {
fatalError()
}
}