mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 20:54:16 +03:00
12 lines
190 B
Plaintext
12 lines
190 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
input_file: input/array_range_access_fail.in
|
|
*/
|
|
|
|
function main (
|
|
const x: u32
|
|
) {
|
|
const y = [1u8; 3];
|
|
const z: [u8; 2] = y[..1u32][..x];
|
|
} |