leo/tests/compiler/array/nested_3x2_value.leo
2021-04-19 18:08:14 -07:00

8 lines
214 B
Plaintext

// Multidimensional array syntax in leo
function main() {
const a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
const b: [u32; (3, 2)] = [[0; 2]; 3]; // initializer
console.assert(a == b);
}