TypeScript/tests/baselines/reference/contextualTyping30.errors.txt
2014-07-24 19:39:50 -07:00

5 lines
298 B
Plaintext

==== 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'.