TypeScript/tests/baselines/reference/subtypingWithCallSignaturesA.js
2014-08-14 16:36:33 -07:00

7 lines
242 B
JavaScript

//// [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