TypeScript/tests/cases/compiler/recursiveMods.ts
2015-10-13 11:17:10 -07:00

26 lines
329 B
TypeScript

// @allowUnreachableCode: true
// @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;
}
}