leo/compiler/tests/array/multi_initializer.leo

7 lines
145 B
Plaintext

function main() {
let a: [u8; (2, 2, 2)] = [1u8; (2, 2, 2)];
let b: [u8; (2, 2, 2)] = [[[1u8; 2]; 2]; 2];
console.assert(a == b);
}