leo/compiler/tests/function/array_params_direct_call.leo

9 lines
169 B
Plaintext
Raw Normal View History

2021-02-08 23:42:37 +03:00
function do_nothing(arr: [u32; 2]) {}
function main() {
const arr: [u32; 2] = [0; 2];
2021-02-08 23:42:37 +03:00
do_nothing(arr);
do_nothing([...arr]);
do_nothing(arr[1u32..]);
}