v/vlib/v/checker/tests/immutable_field.vv

10 lines
66 B
V

struct Aaa {
pub:
i1 int
}
fn main() {
a := Aaa{1}
a.i1 = 2
}