2014-07-13 01:04:16 +02:00
|
|
|
//// [rectype.ts]
|
|
|
|
module M {
|
|
|
|
interface I { (i:I):I; }
|
|
|
|
|
|
|
|
export function f(p: I) { return f };
|
|
|
|
|
|
|
|
var i:I;
|
|
|
|
|
|
|
|
f(i);
|
|
|
|
f(f(i));
|
|
|
|
f((f(f(i))));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [rectype.js]
|
|
|
|
var M;
|
|
|
|
(function (M) {
|
2015-03-09 02:23:23 +01:00
|
|
|
function f(p) {
|
|
|
|
return f;
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
M.f = f;
|
|
|
|
;
|
|
|
|
var i;
|
|
|
|
f(i);
|
|
|
|
f(f(i));
|
|
|
|
f((f(f(i))));
|
|
|
|
})(M || (M = {}));
|