mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
func foo(_: ((Int, Int)) -> Bool) {}
foo({ $0 > $1 }) // doesn't need migration
let x: ((Int, Int)) -> Bool = { $0 > $1 } // but this does
func bar() -> ((Int, Int)) -> Bool {
return {$0 > $1} // and this does
}
1.9 KiB
1.9 KiB