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

28 lines
463 B
JavaScript

//// [generativeRecursionWithTypeOf.ts]
class C<T> {
static foo(x: number) { }
type: T;
}
module M {
export function f(x: typeof C) {
return new x<typeof x>();
}
}
//// [generativeRecursionWithTypeOf.js]
var C = (function () {
function C() {
}
C.foo = function (x) {
};
return C;
})();
var M;
(function (M) {
function f(x) {
return new x();
}
M.f = f;
})(M || (M = {}));