v/vlib/v/checker/tests/immutable_array_field_assig...

11 lines
78 B
V

struct Aaa {
i []int
}
fn main() {
mut a := Aaa{
i: [0]
}
a.i[0] = 3
}