v/vlib/v/checker/tests/go_mut_receiver.vv

16 lines
115 B
V

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