TypeScript/tests/baselines/reference/subtypingWithCallSignaturesA.js

7 lines
241 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [subtypingWithCallSignaturesA.ts]
declare function foo3(cb: (x: number) => number): typeof cb;
var r5 = foo3((x: number) => ''); // error
//// [subtypingWithCallSignaturesA.js]
2014-08-14 18:47:50 +02:00
var r5 = foo3(function (x) { return ''; });// error