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