Skip to content

Give better error message on consecutive numeric separators #20585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DanielRosenwasser opened this issue Dec 8, 2017 · 1 comment
Closed
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue Good First Issue Well scoped, documented and has the green light Help Wanted You can do this

Comments

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Dec 8, 2017

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.
@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Good First Issue Well scoped, documented and has the green light Help Wanted You can do this labels Dec 8, 2017
@DanielRosenwasser DanielRosenwasser added this to the Community milestone Dec 8, 2017
harunurhan added a commit to harunurhan/TypeScript that referenced this issue Dec 9, 2017
@harunurhan
Copy link
Member

harunurhan commented Dec 9, 2017

I'll take this one as my first, if nobody else is working on it.

@mhegazy mhegazy modified the milestones: Community, TypeScript 2.7 Jan 11, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jan 11, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: Error Messages The issue relates to error messaging Fixed A PR has been merged for this issue Good First Issue Well scoped, documented and has the green light Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants