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

4 lines
122 B
TypeScript

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