Skip to content

const enum should allow "Infinity" as a valid name #6153

Closed
@speigg

Description

@speigg
    declare const enum CameraDeviceFocusMode {
        Normal = 0,
        TriggerAuto = 1,
        ContinuousAuto = 2,
        Infinity = 3, // <- error: An enum cannot have a numeric name
        Macro = 4
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions