leo/tests/pass/parse/array/nested_3x2_value.leo
2021-03-03 09:59:24 -08:00

8 lines
210 B
Plaintext

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