leo/compiler/tests/array/variable_slice_fail.leo
Protryon 80d5c87b8a asg
2021-02-02 11:08:56 -08:00

7 lines
127 B
Plaintext

function main() {
let a = [1u8; 10];
for i in 0..10 {
let x = a[i..10];
console.debug("{}", x);
}
}