Skip to content

Flow comments cause syntax errors #175

@tlhunter

Description

@tlhunter

if the : is deleted from the following code sample the issue goes away.

const thing = {
  fn: function (a, b)/*: boolean */ {
    const x = 1;
    if (!x) {
      throw new Error();
    }
    return false;
  }
};

20190125130349
20190125130513

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