Skip to content

namespaces with the same name compile without problem? #28555

@ORESoftware

Description

@ORESoftware

I have this file:

export namespace Entities {
  
  export namespace Foo {
  
  }
  
  export namespace Foo {
  
  }
  
  
}

it compiles without error to:

export declare namespace Entities {
    namespace Foo {
    }
    namespace Foo {
    }
}

I would assume there would be a class of names? Foo clashing with Foo? I don't get it. I am on tsc v3.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions