v/vlib/v/checker/tests/go_mut_arg.vv

16 lines
115 B
V

struct St {
mut:
a int
}
fn change(mut a St) {
a.a++
}
fn main() {
mut x := St{
a: 0
}
go change(mut x)
}