leo/compiler/tests/mutability/array.leo

5 lines
85 B
Plaintext
Raw Normal View History

// Arrays are immutable by default.
function main() {
let a = [1u32];
a[0] = 0;
}