TypeScript/tests/cases/compiler/recursiveMods.ts
2014-07-12 17:30:19 -07:00

23 lines
294 B
TypeScript

//@module: commonjs
export module Foo {
export class C {}
}
export module Foo {
function Bar() : C {
if (true) { return Bar();}
return new C();
}
function Baz() : C {
var c = Baz();
return Bar();
}
function Gar() {
var c : C = Baz();
return;
}
}