Skip to content

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

@STRd6

Description

@STRd6
->
  #@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;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions