TypeScript/tests/baselines/reference/inferentialTypingWithFunctionType.js

9 lines
241 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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);