TypeScript/tests/baselines/reference/functionCall10.errors.txt

11 lines
349 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/functionCall10.ts (2 errors) ====
function foo(...a:number[]){};
foo(0, 1);
foo('foo');
~~~~~
!!! Argument type 'string' is not assignable to parameter type 'number'.
2014-07-13 01:04:16 +02:00
foo();
foo(1, 'bar');
~~~~~
!!! Argument type 'string' is not assignable to parameter type 'number'.
2014-07-13 01:04:16 +02:00