1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/checker/tests/fn_variadic.vv

14 lines
168 B
V

fn f(vi ...int) int {
_ = f(...vi) // OK
_ = f(...vi, 2)
return 0
}
struct S1 {}
fn (s S1) m(vi ...int) int {
_ = s.m(...vi) // OK
_ = s.m(...vi, 2)
return 0
}