v/vlib/v/checker/tests/cannot_assign_array.vv

11 lines
138 B
V

struct Context {
pub mut:
vb string
}
fn main() {
mut ctx := Context{}
x := 2.32
ctx.vb = [1.1, x, 3.3, 4.4, 5.0, 6.0, 7.0, 8.9]!
}