TypeScript/tests/baselines/reference/inferentialTypingWithFunctionType.js
2014-07-12 17:30:19 -07:00

9 lines
241 B
TypeScript

//// [inferentialTypingWithFunctionType.ts]
declare function map<T, U>(x: T, f: (s: T) => U): U;
declare function identity<V>(y: V): V;
var s = map("", identity);
//// [inferentialTypingWithFunctionType.js]
var s = map("", identity);