Closed
Description
Typechecking this code:
var x: string[] = ["A","B","C"];
x = x.concat([1,2,3])
will throw up with
Argument of type 'number[]' is not assignable to parameter of type 'string'.
This happens even without the x =
assignment, and that shows that it would make more sense if the error was either of:
Argument of type 'number' is not assignable to parameter of type 'string'.
or
Argument of type 'number[]' is not assignable to parameter of type 'string[]'.