leo/compiler/tests/array/multi.leo

8 lines
202 B
Plaintext
Raw Normal View History

// Multidimensional array syntax in leo
2020-07-30 10:56:17 +03:00
function main() {
const a = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline
2020-07-30 10:56:17 +03:00
const b: u32[3][2] = [[0; 3]; 2]; // initializer
2020-07-30 10:56:17 +03:00
assert_eq!(a, b);
}