mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
20 lines
255 B
Swift
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)
|
|
}
|