TypeScript/tests/cases/compiler/inferentialTypingWithFunctionTypeNested.ts
2014-07-12 17:30:19 -07:00

4 lines
No EOL
160 B
TypeScript

declare function map<T, U>(x: T, f: () => { x: (s: T) => U }): U;
declare function identity<V>(y: V): V;
var s = map("", () => { return { x: identity }; });