diff options
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/array_declare_element_b.out')
-rw-r--r-- | v_windows/v/vlib/v/checker/tests/array_declare_element_b.out | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/array_declare_element_b.out b/v_windows/v/vlib/v/checker/tests/array_declare_element_b.out new file mode 100644 index 0000000..a898165 --- /dev/null +++ b/v_windows/v/vlib/v/checker/tests/array_declare_element_b.out @@ -0,0 +1,6 @@ +vlib/v/checker/tests/array_declare_element_b.vv:3:5: error: non-name `arr[1]` on left side of `:=` + 1 | fn main() { + 2 | arr := [1, 2] + 3 | arr[1] := 1 + | ~~~ + 4 | } |