| 1 | vlib/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{} |
| 7 | vlib/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 | } |
| 14 | vlib/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 | } |