aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/fn_variadic.vv
blob: b7faad7444c7571e0b7b6db766df6cbc33dfda65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}