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

type annotation in keymirror doesn't get reprinted nicely, is syntax error #260

Open
zpao opened this issue Jul 26, 2017 · 0 comments
Open

Comments

@zpao
Copy link
Member

zpao commented Jul 26, 2017

var keyMirror = function<T: {}>(obj: T): $ObjMapi<T, <K>(K) => K> {

gets reprinted as

var keyMirror = function<T: {}>(obj: T): $ObjMapi<T, <K>(: K) => K> {

which doesn't parse. This will need to be fixed in Babel or we'll need a different annotation here that re-prints.

Note: I shipped this in 0.8.13. I'm reverting that changeset and publishing 0.8.14 now.

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