mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-19 07:32:26 +03:00
14 lines
298 B
Plaintext
14 lines
298 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
// Multidimensional array syntax in leo
|
|
function main(y: bool) -> bool {
|
|
const a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
|
|
const b: [u32; (3, 2)] = [0; (3, 2)]; // initializer
|
|
|
|
return (a == b) == y;
|
|
}
|