mirror of
https://github.com/apple/swift.git
synced 2026-01-07 22:52:31 +01:00
12 lines
262 B
Swift
12 lines
262 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
func takeIntToInt(_ f: (Int) -> Int) { }
|
|
func takeIntIntToInt(_ f: (Int, Int) -> Int) { }
|
|
|
|
// Simple closures with anonymous arguments
|
|
func simple() {
|
|
takeIntToInt({return $0 + 1})
|
|
takeIntIntToInt({return $0 + $1 + 1})
|
|
}
|
|
|