leo/tests/compiler/function/array_params_direct_call.leo
2021-05-05 18:29:44 +03:00

15 lines
214 B
Plaintext

/*
namespace: Compile
expectation: Pass
*/
function do_nothing(arr: [u32; 2]) {}
function main() {
const arr: [u32; 2] = [0; 2];
do_nothing(arr);
do_nothing([...arr]);
do_nothing(arr[0u32..]);
}