Skip to content

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

Open

Description

@zpao
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions