v/vlib/v/checker/tests/immutable_array_field_shift.vv

16 lines
108 B
V
Raw Normal View History

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