9 lines
241 B
JavaScript
9 lines
241 B
JavaScript
|
//// [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);
|