mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
215 B
Swift
16 lines
215 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
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()
|
|
}
|
|
}
|