swc/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.ts

2 lines
103 B
TypeScript

declare function foo3(cb: (x: number) => number): typeof cb;
var r5 = foo3((x: number) => ''); // error