v/vlib/v/checker/tests/immutable_struct_postfix.v

11 lines
64 B
V

struct A {
mut:
i int
}
fn main() {
a := A{}
a.i++
a.i--
}