Skip to content

[spec] Grammar says ambient enum member can be an arbitrary numeric literal #546

@mhegazy

Description

@mhegazy

AmbientEnumMember says

PropertyName = NumericLiteral

when in truth this is not quite right. NumericLiteral allows decimals, but does not allow negatives. The one we need is SignedInteger or HexIntegerLiteral from the ES spec.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueSpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions