aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/v/checker/tests/mut_arg.vv
blob: 0a2afdd84458008962f91742f71ab4980308f27d (plain)
1
2
3
4
5
6
7
8
9
10
11
fn f(mut par []int) {
}
fn g(par []int) {
}

f([3,4])
mut a := [1,2]
f(a)

g(mut [3,4])
g(mut a)