leo/asg/tests/pass/array/nested_3x2_value.leo

8 lines
210 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
// Multidimensional array syntax in leo
function main() {
let a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
2021-01-25 18:17:42 +03:00
let b: [u32; (3, 2)] = [[0; 2]; 3]; // initializer
2021-01-25 18:17:42 +03:00
console.assert(a == b);
}