mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 08:31:33 +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];
|
|
} |