Closed
Description
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
2.1.1
Code
type Data = [number, number];
let a:Data = [1,2,3,4,5].map(v=>[v, v+1]);
Expected behavior:
Compiled successfully.
Actual behavior:
test.ts(3,5): error TS2322: Type 'number[][]' is not assignable to type '[number, number]'.
Property '0' is missing in type 'number[][]'.
It seems work well in 2.0, throw this error after update to 2.1