leo/tests/compiler/mutability/array_mut.leo

13 lines
171 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
function main(y: bool) -> bool {
let a = [1u32];
a[0] = 0;
return a[0] == 0u32 == y;
}