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

5 lines
383 B
Plaintext
Raw Normal View History

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 04:39:50 +02:00
!!! Argument of type '(x: number) => string' is not assignable to parameter of type '(x: number) => number'.