1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
=== tests/cases/compiler/duplicateAnonymousInners1.ts ===
module Foo {
>Foo : Symbol(Foo, Decl(duplicateAnonymousInners1.ts, 0, 0), Decl(duplicateAnonymousInners1.ts, 10, 1))
class Helper {
>Helper : Symbol(Helper, Decl(duplicateAnonymousInners1.ts, 0, 12))
}
class Inner {}
>Inner : Symbol(Inner, Decl(duplicateAnonymousInners1.ts, 4, 5))
// Inner should show up in intellisense
export var Outer=0;
>Outer : Symbol(Outer, Decl(duplicateAnonymousInners1.ts, 9, 14))
}
module Foo {
>Foo : Symbol(Foo, Decl(duplicateAnonymousInners1.ts, 0, 0), Decl(duplicateAnonymousInners1.ts, 10, 1))
// Should not be an error
class Helper {
>Helper : Symbol(Helper, Decl(duplicateAnonymousInners1.ts, 13, 12))
}
// Inner should not show up in intellisense
// Outer should show up in intellisense
}
|