aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/mut_arg.out
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/mut_arg.out')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/mut_arg.out25
1 files changed, 25 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/mut_arg.out b/v_windows/v/old/vlib/v/checker/tests/mut_arg.out
new file mode 100644
index 0000000..f18c285
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/mut_arg.out
@@ -0,0 +1,25 @@
+vlib/v/checker/tests/mut_arg.vv:6:3: error: `f` parameter `par` is `mut`, you need to provide `mut` e.g. `mut arg1`
+ 4 | }
+ 5 |
+ 6 | f([3,4])
+ | ~~~~~
+ 7 | mut a := [1,2]
+ 8 | f(a)
+vlib/v/checker/tests/mut_arg.vv:8:3: error: `f` parameter `par` is `mut`, you need to provide `mut` e.g. `mut arg1`
+ 6 | f([3,4])
+ 7 | mut a := [1,2]
+ 8 | f(a)
+ | ^
+ 9 |
+ 10 | g(mut [3,4])
+vlib/v/checker/tests/mut_arg.vv:10:7: error: array literal can not be modified
+ 8 | f(a)
+ 9 |
+ 10 | g(mut [3,4])
+ | ~~~~~
+ 11 | g(mut a)
+vlib/v/checker/tests/mut_arg.vv:11:7: error: `g` parameter `par` is not `mut`, `mut` is not needed`
+ 9 |
+ 10 | g(mut [3,4])
+ 11 | g(mut a)
+ | ^