blob: d3b59405dd18bf425ce57c1294cfd62f704cd4d9 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
// rdar://problem/46632723
public struct Foo<T>: Hashable { }
public struct Bar<U, V> {
public subscript<W> (foo: W) -> Int {
return 0
}
// CHECK-LABEL: define {{.*}} @"$s17keypath_subscript3FooVyqd__Gr0__lTh"
// CHECK: call swiftcc %swift.metadata_response @"$s17keypath_subscript3FooVMa"
public func blah<W>(_: W) -> AnyKeyPath {
return \Bar<U, V>.[Foo<W>()] as AnyKeyPath
}
}