blob: d2ea8c1a6d7d2f7a6b8bd159c089da74d7edb90a [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %round-trip-syntax-test --swift-syntax-test %swift-syntax-test --file %s
func noArgs() {}
func oneArg(x: Int) {}
func oneUnlabeledArg(_ x: Int) {}
typealias FunctionAlias = (_ x: inout Int) -> Bool
typealias FunctionAliasNoLabel = (Int) -> Bool
func manyArgs(x: Int, y: Int, _ z: Bool, _ a: String) throws -> [Int] {
return []
}
func rethrowing(_ f: (Bool) throws -> Int) rethrows -> Int {
return try f(false)
}