Flow generic comment formatted incorrectly #4295
Labels
area:comments
Issues with how Prettier prints comments
area:flow comment types
lang:flow
Issues affecting Flow-specific constructs (not general JS issues)
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.11.1
Playground link
Input:
Output:
Expected behavior:
It seems as though the generic comment
/*::<T>*/
needs to remain between thefunction
keyword and the(
in order for the Flow parser to correctly recognize the comment (pasting Prettier's output into https://flow.org/try gives errors). Not sure if there is a corresponding case for arrow functions or notThe text was updated successfully, but these errors were encountered: