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

9 lines
143 B
TypeScript

function foo(f: (x: string) => string) {
return f("");
}
var g = (x: string) => x + "blah";
var x = () => g;
foo(g);
foo(() => g);
foo(x);