leo/asg/tests/pass/array/index_u8.leo
2021-01-25 11:01:28 -08:00

6 lines
90 B
Plaintext

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