leo/tests/compiler/mutability/array_mut.leo
2021-05-03 17:28:53 +03:00

11 lines
132 B
Plaintext

/*
namespace: Compile
expectation: Pass
*/
function main() {
let a = [1u32];
a[0] = 0;
console.assert(a[0] == 0u32);
}