leo/tests/compiler/function/array_input.leo

14 lines
200 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
2021-05-05 18:29:44 +03:00
*/
2020-10-26 23:14:36 +03:00
function foo(a: [u8; 1]) {}
function main(y: bool) -> bool {
2021-05-05 18:29:44 +03:00
const a: [u8; 1] = [1; 1];
2020-10-26 23:14:36 +03:00
foo(a);
return y == true;
2021-05-05 18:29:44 +03:00
}