From e35d31fb6f329de1e2efa83c51a66eaca76d1a5e Mon Sep 17 00:00:00 2001 From: Adam Oates Date: Sat, 4 Jan 2025 14:28:39 -0600 Subject: [PATCH] parser: fix array_init.out --- vlib/v/parser/tests/array_init.out | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vlib/v/parser/tests/array_init.out b/vlib/v/parser/tests/array_init.out index 7dff501a479923..e3437627088009 100644 --- a/vlib/v/parser/tests/array_init.out +++ b/vlib/v/parser/tests/array_init.out @@ -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{}