leo/tests/compiler/mutability/array_mut.leo

13 lines
171 B
Plaintext
Raw Normal View History

2021-05-03 17:28:53 +03:00
/*
namespace: Compile
expectation: Pass
2021-05-05 18:29:44 +03:00
input_file: input/dummy.in
2021-05-03 17:28:53 +03:00
*/
function main(y: bool) -> bool {
let a = [1u32];
2020-07-17 22:59:18 +03:00
a[0] = 0;
return a[0] == 0u32 == y;
2021-05-05 18:29:44 +03:00
}