v/vlib/v/parser/tests/array_init.out

19 lines
No EOL
629 B
Text

vlib/v/parser/tests/array_init.vv:2:7: warning: use `x := []Type{}` instead of `x := []Type`
1 | fn main() {
2 | _ := []int
| ~~~~~
3 | _ := [1]int
4 | _ := []!int{}
vlib/v/parser/tests/array_init.vv:3:7: warning: use e.g. `x := [1]Type{}` instead of `x := [1]Type`
1 | fn main() {
2 | _ := []int
3 | _ := [1]int
| ~~~~~~
4 | _ := []!int{}
5 | }
vlib/v/parser/tests/array_init.vv:4:9: error: arrays do not support storing Result values
2 | _ := []int
3 | _ := [1]int
4 | _ := []!int{}
| ^
5 | }