mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
278 B
Swift
15 lines
278 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
// rdar://20985062
|
|
|
|
class A {
|
|
func foo(_ a: [(x: Int, y: Double)]) {}
|
|
}
|
|
|
|
func accept<T>(_ t: T.Type, _ value: inout T) {}
|
|
|
|
typealias TheType = (A) -> ([(x: Int, y: Double)]) -> ()
|
|
var curried = A.foo
|
|
accept(TheType.self, &curried)
|
|
|