Skip to content

typeof const enum #3440

@jbondc

Description

@jbondc
const enum Bar { a, b}
var c: typeof Bar.a; // 'const' enum can only be used in property or index access expressions or the right hand side of an import declaration or export assignment.

Should it be allowed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions