leo/asg/tests/pass/array/slice_i8.leo
2021-01-25 10:29:23 -08:00

7 lines
167 B
Plaintext

// `{from}..{to}` copies the elements of one array into another exclusively
function main(a: [u8; 3]) {
let b = [1u8; 4];
console.assert(a == b[0u8..3i8]);
}