71 lines
1.7 KiB
Text
71 lines
1.7 KiB
Text
=== tests/cases/compiler/duplicateAnonymousModuleClasses.ts ===
|
|
module F {
|
|
>F : Symbol(F, Decl(duplicateAnonymousModuleClasses.ts, 0, 0), Decl(duplicateAnonymousModuleClasses.ts, 6, 1))
|
|
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 0, 10))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
module F {
|
|
>F : Symbol(F, Decl(duplicateAnonymousModuleClasses.ts, 0, 0), Decl(duplicateAnonymousModuleClasses.ts, 6, 1))
|
|
|
|
// Should not be an error
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 9, 10))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 16, 1), Decl(duplicateAnonymousModuleClasses.ts, 24, 1))
|
|
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 18, 12))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 16, 1), Decl(duplicateAnonymousModuleClasses.ts, 24, 1))
|
|
|
|
// Should not be an error
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 27, 12))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module Gar {
|
|
>Gar : Symbol(Gar, Decl(duplicateAnonymousModuleClasses.ts, 34, 1))
|
|
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 36, 12), Decl(duplicateAnonymousModuleClasses.ts, 43, 5))
|
|
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 37, 16))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(duplicateAnonymousModuleClasses.ts, 36, 12), Decl(duplicateAnonymousModuleClasses.ts, 43, 5))
|
|
|
|
// Should not be an error
|
|
class Helper {
|
|
>Helper : Symbol(Helper, Decl(duplicateAnonymousModuleClasses.ts, 46, 16))
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|