blob: 068f3b2f4543941621e45e7219130b8cbab2a34d [file] [log] [blame]
// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
func foo<T>(_ a: T) -> Int {
return 0
}
func foo(_ a: (Int) -> (Int)) -> Int {
return 42
}
// CHECK: function_ref @_T012rdar351421213fooyS3icF : $@convention(thin) (@owned @noescape @callee_guaranteed (Int) -> Int) -> Int
let _ = foo({ (a: Int) -> Int in a + 1 })