TypeScript/tests/cases/compiler/contextualTypingFunctionReturningFunction2.ts
Andy fe3a05e89a A function should be context-sensitive if its return expression is (#17697)
* A function should be context-sensitive if its return expression is

* Remove outdated comment

* Fix typo
2017-08-10 07:08:24 -07:00

5 lines
114 B
TypeScript

declare function f(n: number): void;
declare function f(cb: () => (n: number) => number): void;
f(() => n => n);