aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/mut_receiver.vv
blob: fae05df9bae0b6c31e40419680a9dec3ad3a2488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct Foo{
mut:
	name string
}
fn (f mut Foo) info() {
	f.name = 'foo'
}
fn (mut f &Foo) info2() {
	f.name = 'foo'
}
fn main() {
	println('hello, world')
}