2014-07-13 01:04:16 +02:00
|
|
|
//// [inferentialTypingWithFunctionTypeNested.ts]
|
|
|
|
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 }; });
|
|
|
|
|
|
|
|
//// [inferentialTypingWithFunctionTypeNested.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
var s = map("", function () { return { x: identity }; });
|