diff options
Diffstat (limited to 'v_windows/v/vlib/v/checker/tests/array_literal_modify_err.out')
-rw-r--r-- | v_windows/v/vlib/v/checker/tests/array_literal_modify_err.out | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/checker/tests/array_literal_modify_err.out b/v_windows/v/vlib/v/checker/tests/array_literal_modify_err.out new file mode 100644 index 0000000..eaec4f9 --- /dev/null +++ b/v_windows/v/vlib/v/checker/tests/array_literal_modify_err.out @@ -0,0 +1,12 @@ +vlib/v/checker/tests/array_literal_modify_err.vv:2:24: error: array append cannot be used in an expression + 1 | fn main() { + 2 | mut nums := [1, 2, 3] << 4 + | ~~ + 3 | println(nums) + 4 | } +vlib/v/checker/tests/array_literal_modify_err.vv:3:2: error: `println` can not print void expressions + 1 | fn main() { + 2 | mut nums := [1, 2, 3] << 4 + 3 | println(nums) + | ~~~~~~~~~~~~~ + 4 | } |