Skip to content

IdentifierStart cannot occur following a NumericLiteral #4702

@DanielRosenwasser

Description

@DanielRosenwasser

From 11.8.3 - NumericLiterals:

The SourceCharacter immediately following a NumericLiteral must not be an IdentifierStart or DecimalDigit.

NOTE For example:

3in

is an error and not the two input elements 3 and in.

So the following should be an error:

let hasFour = 3in[null, null, null, null];

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".FixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions