leo/tests/pass/parse/mutability/array.leo

5 lines
91 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
// Arrays are immutable by default.
function main() {
const a = [1u32];
2021-03-03 20:59:24 +03:00
a[0] = 0;
}