vxx2 / vlib / v / checker / tests / fixed_array_decompose_err.out
12 lines · 12 sloc · 519 bytes · 1512486d01d4205e7b67ebd679238fa45cd348af
Raw
1vlib/v/checker/tests/fixed_array_decompose_err.vv:11:9: error: direct decomposition of fixed array is not allowed, convert the fixed array to normal array via arr[..]
2 9 | fn main() {
3 10 | arr := [1, 2, 3, 4]!
4 11 | sum(...arr)
5 | ~~~
6 12 | }
7vlib/v/checker/tests/fixed_array_decompose_err.vv:11:6: error: `ast.ArrayDecompose` (no value) used as value in argument 1 to `sum`
8 9 | fn main() {
9 10 | arr := [1, 2, 3, 4]!
10 11 | sum(...arr)
11 | ~~~~~~
12 12 | }
13