mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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
}
7.7 KiB
7.7 KiB