let a: [number, number];
const b = [1,2];
a = b; // Type 'number[]' is missing the following properties from type '[number, number]': 0, 1ts(2739)
Same error with any array lenghs:
let a: [number, number, number];
const b = [1,2,3];
a = b; // Type 'number[]' is missing the following properties from type '[number, number, number]': 0, 1, 2ts(2739)
I can't set array with fixed length. Just why? Why it isn't working? Seems like a bug.
Same error with any array lenghs:
I can't set array with fixed length. Just why? Why it isn't working? Seems like a bug.