Skip to content

Commit

Permalink
parser: fix array_init.out
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Oates committed Jan 4, 2025
1 parent 1d24aac commit e35d31f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vlib/v/parser/tests/array_init.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ vlib/v/parser/tests/array_init.vv:2:7: warning: use `x := []Type{}` instead of `
2 | _ := []int
| ~~~~~
3 | _ := [1]int
4 | }
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 | }
vlib/v/parser/tests/array_init.vv4:9:: error: expression evaluated but not used
4 | _ := []!int{}
5 | }
vlib/v/parser/tests/array_init.vv:4:9: error: array does not support storing storing Result
2 | _ := []int
3 | _ := [1]int
4 | _ := []!int{}
Expand Down

0 comments on commit e35d31f

Please sign in to comment.