-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Significant parentheses removed from Flow types #17186
Copy link
Copy link
Labels
lang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
lang:flowIssues affecting Flow-specific constructs (not general JS issues)Issues affecting Flow-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Prettier 2.8.8
Playground link - Not supported, Flow parser too old
Input:
Output:
Expected output:
Why?
Removing the parens changes the Flow type: