Files
tsgo/testdata/baselines/reference/submodule/compiler/duplicateAnonymousInners1.js

48 lines
845 B
TypeScript

//// [tests/cases/compiler/duplicateAnonymousInners1.ts] ////
//// [duplicateAnonymousInners1.ts]
namespace Foo {
class Helper {
}
class Inner {}
// Inner should show up in intellisense
export var Outer=0;
}
namespace Foo {
// Should not be an error
class Helper {
}
// Inner should not show up in intellisense
// Outer should show up in intellisense
}
//// [duplicateAnonymousInners1.js]
"use strict";
var Foo;
(function (Foo) {
class Helper {
}
class Inner {
}
// Inner should show up in intellisense
Foo.Outer = 0;
})(Foo || (Foo = {}));
(function (Foo) {
// Should not be an error
class Helper {
}
// Inner should not show up in intellisense
// Outer should show up in intellisense
})(Foo || (Foo = {}));