v/vlib/v/checker/tests/struct_pub_field.vv

11 lines
67 B
V

struct Foo {
i int
}
fn main() {
a := Foo{
i: 1
}
a.i = 2
}