leo/tests/compiler/array_without_size/function_input.leo
2021-09-02 15:53:54 +03:00

14 lines
212 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
function main(y: bool) -> bool {
return (first_el([1,2,3,4]) == 1) == y;
}
function first_el(arr: [u8; _]) -> u8 {
return arr[0];
}