Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0011-rdar20985062.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)