mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 05:02:04 +03:00
14 lines
260 B
Plaintext
14 lines
260 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/three_ones.in
|
|
*/
|
|
|
|
// A spread operator `...` copies the elements of one array into another
|
|
function main(a: [u8; 3]) -> bool {
|
|
const b = [1u8, 1u8];
|
|
const c = [1u8, ...b];
|
|
|
|
return a == c;
|
|
}
|