Skip to content
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

Typescript removes comments before assignment values. #22377

Closed
Glinkis opened this issue Mar 7, 2018 · 2 comments
Closed

Typescript removes comments before assignment values. #22377

Glinkis opened this issue Mar 7, 2018 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@Glinkis
Copy link

Glinkis commented Mar 7, 2018

Code

const value: number = /*1*/ 0 /*2*/;

Expected behavior:
Should produce

var value = /*1*/ 0 /*2*/;

Actual behavior:
Produces

var value = 0 /*2*/;

Playground Link:
link

@j-oliveras
Copy link
Contributor

Probably solved by #22141. You can try it with a nightly build.

@Glinkis
Copy link
Author

Glinkis commented Mar 7, 2018

@j-oliveras Yep, seems to be. I'll close this then.

@Glinkis Glinkis closed this as completed Mar 7, 2018
@mhegazy mhegazy added the Duplicate An existing issue was already created label Mar 7, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants