| 1 | vlib/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 | } |
| 7 | vlib/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 |