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

Comment gets lost inside a function when using an existential operator #5415

Open
STRd6 opened this issue Apr 25, 2022 · 1 comment
Open

Comments

@STRd6
Copy link
Contributor

STRd6 commented Apr 25, 2022

->
  #@ts-ignore
  subsystem.clearCache?()

Actual

// Generated by CoffeeScript 2.6.1
(function() {
  return typeof subsystem.clearCache === "function" ? subsystem.clearCache() : void 0;
});

Expected

// Generated by CoffeeScript 2.6.1
(function() {
  //@ts-ignore
  return typeof subsystem.clearCache === "function" ? subsystem.clearCache() : void 0;
});
@STRd6 STRd6 changed the title Comment gets lost inside a function when using an existential operator requiring a base temp var Comment gets lost inside a function when using an existential operator requiring Apr 26, 2022
@STRd6 STRd6 changed the title Comment gets lost inside a function when using an existential operator requiring Comment gets lost inside a function when using an existential operator Apr 26, 2022
@GeoffreyBooth
Copy link
Collaborator

If you’d like to tackle this, #5366 (comment) has some links to get you started. I also see that issue, about outputting JSDoc comments properly, as a high priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants