2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesA.ts (1 errors) ====
|
|
|
|
declare function foo3(cb: (x: number) => number): typeof cb;
|
|
|
|
var r5 = foo3((x: number) => ''); // error
|
2014-07-25 02:00:03 +02:00
|
|
|
~~~~~~~~~~~~~~~~~
|
2014-07-25 04:39:50 +02:00
|
|
|
!!! Argument of type '(x: number) => string' is not assignable to parameter of type '(x: number) => number'.
|