mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
48 lines
845 B
TypeScript
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 = {}));
|