leo/compiler/tests/array/variable_slice_fail.leo

7 lines
127 B
Plaintext
Raw Normal View History

2020-12-17 00:02:31 +03:00
function main() {
let a = [1u8; 10];
for i in 0..10 {
let x = a[i..10];
console.debug("{}", x);
}
}