aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/go_mut_receiver.vv
blob: 0b64d51c2395babecfc6d58fe80c24c4222b6dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct St {
mut:
	a int
}

fn (mut a St) change() {
	a.a++
}

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