1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/checker/tests/mut_receiver.vv

14 lines
157 B
V

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')
}