leo/asg/tests/pass/array/multi_initializer.leo

7 lines
149 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function main() {
const a: [u8; (2, 2, 2)] = [1u8; (2, 2, 2)];
2021-01-25 18:17:42 +03:00
const b: [u8; (2, 2, 2)] = [[[1u8; 2]; 2]; 2];
2021-01-25 18:17:42 +03:00
console.assert(a == b);
}