leo/asg/tests/pass/array/index_u8.leo

6 lines
94 B
Plaintext

function main() {
const x = 0u8;
const a = [0u8; 4];
console.assert(a[x] == 0);
}