leo/compiler/tests/array/multi_initializer.leo

7 lines
149 B
Plaintext
Raw Normal View History

2020-09-03 02:49:06 +03:00
function main() {
const a: [u8; (2, 2, 2)] = [1u8; (2, 2, 2)];
const b: [u8; (2, 2, 2)] = [[[1u8; 2]; 2]; 2];
console.assert(a == b);
}