v2 / vlib / v / checker / tests / cannot_assign_array.vv
10 lines · 9 sloc · 137 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1struct Context {
2pub mut:
3 vb string
4}
5
6fn main() {
7 mut ctx := Context{}
8 x := 2.32
9 ctx.vb = [1.1, x, 3.3, 4.4, 5.0, 6.0, 7.0, 8.9]!
10}
11