v/vlib/v/checker/tests/mut_arg.vv

12 lines
97 B
V

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)