Skip to content

Typescript eats Google Closure type cast comment #17532

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
scf37 opened this issue Jul 31, 2017 · 0 comments
Closed

Typescript eats Google Closure type cast comment #17532

scf37 opened this issue Jul 31, 2017 · 0 comments
Labels
Bug A bug in TypeScript Domain: Comment Emit The issue relates to the emission of comments when compiling

Comments

@scf37
Copy link

scf37 commented Jul 31, 2017

TypeScript Version: 2.4.20

Code

function f() {
    return /* @type {number} */ 42;
}

Expected behavior:
Should be compiled to

function f() {
    return /* @type {number} */ 42;
}

Actual behavior:
Compiled to

function f() {
    return 42;
}
@DanielRosenwasser DanielRosenwasser added Domain: Comment Emit The issue relates to the emission of comments when compiling Bug A bug in TypeScript labels Jul 31, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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: Comment Emit The issue relates to the emission of comments when compiling
Projects
None yet
Development

No branches or pull requests

2 participants