You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A *self-contained* demonstration of the problem follows...
coords: [number,number][]=[[0,0],[1,1]];
transformed: [number,number][]=coords.map(([x,y])=>[x+1,y+1]);
Expected behavior:
This type checks
Actual behavior:
coords.map is infered to have type number[][] instead of [number, number][]
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.0.0
Code
Expected behavior:
This type checks
Actual behavior:
coords.map is infered to have type number[][] instead of [number, number][]
The text was updated successfully, but these errors were encountered: