leo/asg/tests/pass/array/slice_i8.leo

7 lines
169 B
Plaintext
Raw Normal View History

2021-01-25 21:26:13 +03:00
// `{from}..{to}` copies the elements of one array into another exclusively
function main(a: [u8; 3]) {
const b = [1u8; 4];
2021-01-25 21:26:13 +03:00
console.assert(a == b[0u8..3i8]);
}