v2 / vlib / v / parser / tests / array_init.out
19 lines · 19 sloc · 629 bytes · 66ac23fc5790a538196aa67cc19d0160976c9c31
Raw
1vlib/v/parser/tests/array_init.vv:2:7: warning: use `x := []Type{}` instead of `x := []Type`
2 1 | fn main() {
3 2 | _ := []int
4 | ~~~~~
5 3 | _ := [1]int
6 4 | _ := []!int{}
7vlib/v/parser/tests/array_init.vv:3:7: warning: use e.g. `x := [1]Type{}` instead of `x := [1]Type`
8 1 | fn main() {
9 2 | _ := []int
10 3 | _ := [1]int
11 | ~~~~~~
12 4 | _ := []!int{}
13 5 | }
14vlib/v/parser/tests/array_init.vv:4:9: error: arrays do not support storing Result values
15 2 | _ := []int
16 3 | _ := [1]int
17 4 | _ := []!int{}
18 | ^
19 5 | }