Files
codeql/swift/ql/test/extractor-tests/generated/decl/ConcreteFuncDecl/functions.swift
2022-06-14 18:01:29 +02:00

20 lines
255 B
Swift

func foo() -> Int {
return 42
}
func bar(_ x: Int, d y: Double) -> Int {
return x + Int(y)
}
protocol Beep {
func noBody(x: Int) -> Int
}
func variadic(_ ints: Int...) {
print(ints)
}
func generic<X, Y>(x: X, y: Y) {
print(x, y)
}