5 lines
No EOL
298 B
Text
5 lines
No EOL
298 B
Text
==== tests/cases/compiler/contextualTyping30.ts (1 errors) ====
|
|
function foo(param:number[]){}; foo([1, "a"]);
|
|
~~~~~~~~
|
|
!!! Argument of type '{}[]' is not assignable to parameter of type 'number[]'.
|
|
!!! Type '{}' is not assignable to type 'number'. |