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

Flow comments cause syntax errors #175

Open
tlhunter opened this issue Jan 25, 2019 · 0 comments
Open

Flow comments cause syntax errors #175

tlhunter opened this issue Jan 25, 2019 · 0 comments

Comments

@tlhunter
Copy link

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

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

1 participant