v/vlib/v/checker/tests/immutable_field_postfix.vv

10 lines
67 B
V
Raw Normal View History

2020-05-27 18:12:34 +02:00
struct Aaa {
i int
}
fn main() {
2020-05-27 18:12:34 +02:00
mut a := Aaa{}
a.i++
a.i--
}