leo/compiler/tests/array/multi.leo

8 lines
196 B
Plaintext
Raw Normal View History

// Multidimensional array syntax in leo
function main() -> u32[3][2] {
let m = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline
let m: u32[3][2] = [[0; 3]; 2]; // initializer
return m
}