20 lines
No EOL
694 B
Text
20 lines
No EOL
694 B
Text
==== tests/cases/compiler/assignmentCompatBug5.ts (4 errors) ====
|
|
function foo1(x: { a: number; }) { }
|
|
foo1({ b: 5 });
|
|
~~~~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
|
|
function foo2(x: number[]) { }
|
|
foo2(["s", "t"]);
|
|
~~~~~~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
|
|
function foo3(x: (n: number) =>number) { };
|
|
foo3((s:string) => { });
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
foo3((n) => { return; });
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Supplied parameters do not match any signature of call target.
|
|
|
|
|