TypeScript Version:
1.8.9
Code
newMap<number,number>([1,2].map(x=>[x,x]));// Error:// Argument of type 'number[][]' is not assignable to parameter of type 'Iterable<[number, number]>'…
Expected behavior: types are inferred correctly, no error shown.
Actual behavior: type error.
TypeScript Version:
1.8.9
Code
Expected behavior: types are inferred correctly, no error shown.
Actual behavior: type error.