72 lines
772 B
Text
72 lines
772 B
Text
|
=== tests/cases/compiler/duplicateAnonymousModuleClasses.ts ===
|
||
|
module F {
|
||
|
>F : typeof F
|
||
|
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
module F {
|
||
|
>F : typeof F
|
||
|
|
||
|
// Should not be an error
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module Foo {
|
||
|
>Foo : typeof Foo
|
||
|
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
module Foo {
|
||
|
>Foo : typeof Foo
|
||
|
|
||
|
// Should not be an error
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
module Gar {
|
||
|
>Gar : typeof Gar
|
||
|
|
||
|
module Foo {
|
||
|
>Foo : typeof Foo
|
||
|
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
module Foo {
|
||
|
>Foo : typeof Foo
|
||
|
|
||
|
// Should not be an error
|
||
|
class Helper {
|
||
|
>Helper : Helper
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|