leo/tests/compiler/array/nested_3x2_value.leo

14 lines
298 B
Plaintext
Raw Normal View History

2021-05-05 21:25:24 +03:00
/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
// Multidimensional array syntax in leo
2021-05-05 21:25:24 +03:00
function main(y: bool) -> bool {
const a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
const b: [u32; (3, 2)] = [[0; 2]; 3]; // initializer
2021-07-01 23:40:29 +03:00
return (a == b) == y;
2021-05-05 21:25:24 +03:00
}