Skip to content

Give better error message on consecutive numeric separators #20585

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

From #20324 (comment), and contingent on #20324 first getting merged.

let x = 123__456;

Note the double underscores.

Actual: Numeric separators are not allowed here.

  • A numeric literal cannot contain multiple consecutive separators.
  • Multiple consecutive numeric separators are not permitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA 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