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

Negative numeric literal types are not working: #523

Closed
arv opened this issue Sep 3, 2016 · 1 comment · Fixed by #536
Closed

Negative numeric literal types are not working: #523

arv opened this issue Sep 3, 2016 · 1 comment · Fixed by #536

Comments

@arv
Copy link
Contributor

arv commented Sep 3, 2016

The following gives me a syntax error:

/** */
function f(): -42 {}

This works in Flow and Babel playgrounds. Maybe we are not using the latest version of babylon/flow-syntax?

@tmcw
Copy link
Member

tmcw commented Sep 6, 2016

This works for me. Maybe try npm update if a patch release of a babel package fixed this?

arv added a commit to arv/documentation that referenced this issue Sep 9, 2016
@arv arv closed this as completed in #536 Sep 9, 2016
arv added a commit that referenced this issue Sep 9, 2016
This is to pick up bug fix for #523

Fixes #523
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

Successfully merging a pull request may close this issue.

2 participants