23 lines
294 B
TypeScript
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;
|
|
}
|
|
|
|
}
|