TypeScript/tests/baselines/reference/subtypingWithCallSignaturesA.js

7 lines
241 B
TypeScript

//// [subtypingWithCallSignaturesA.ts]
declare function foo3(cb: (x: number) => number): typeof cb;
var r5 = foo3((x: number) => ''); // error
//// [subtypingWithCallSignaturesA.js]
var r5 = foo3(function (x) { return ''; }); // error