aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/fn_args.vv
blob: 5cfdff5992cd591109103fd5f4d07fc29855fb03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fn uu8(a byte) {}

fn arr(a []int) {}

fn fun(a fn (int)) {}

fn basic() {
	v := 4
	uu8(&v)
	arr([5]!)
	fun(fn (i &int) {})
	fun(fn (ii ...int) {})
}

struct S1 {
}

fn f(p &S1) {}

fn ptr() {
	v := 4
	f(v)
}