leo/compiler/tests/array/nested_3x2_value.leo

8 lines
214 B
Plaintext
Raw Normal View History

// Multidimensional array syntax in leo
2020-07-30 10:56:17 +03:00
function main() {
2020-09-03 10:30:57 +03:00
const a = [[0u32, 0u32], [0u32, 0u32], [0u32, 0u32]]; // inline
2020-09-03 10:30:57 +03:00
const b: [u32; (3, 2)] = [[0; 2]; 3]; // initializer
2020-08-17 03:20:47 +03:00
console.assert(a == b);
}