leo/tests/compiler/array/variable_slice_fail.leo

13 lines
176 B
Plaintext
Raw Normal View History

2021-05-06 14:01:42 +03:00
/*
namespace: Compile
expectation: Fail
*/
2020-12-17 00:02:31 +03:00
function main() {
const a = [1u8; 10];
2020-12-17 00:02:31 +03:00
for i in 0..10 {
const x = a[i..10];
2020-12-17 00:02:31 +03:00
console.debug("{}", x);
}
2021-05-06 14:01:42 +03:00
}