Skip to content

Can't merge const enum with namespace #16804

@ghost

Description

TypeScript Version: nightly (2.5.0-dev.20170628)

Code

enum E {}
namespace E {}

const enum C {}
namespace C {}

Expected behavior:

No error.

Actual behavior:

src/a.ts(5,11): error TS2473: Enum declarations must all be const or non-const.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions