Fix generator missing parens on Flow union types (#6334)

This commit is contained in:
Brian Ng
2017-09-29 13:43:38 -05:00
committed by Henry Zhu
parent f0ab0f81d3
commit 832408e85d
4 changed files with 34 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
type foo = ?(a | b);
type foo2 = ?(a & b);
type foo3 = (a | b)[];
type foo4 = (a & b)[];
type foo5 = a | b | c;
type foo6 = a & b & c;
type foo7 = a & b | c;
type foo8 = a | b & c;
type foo9 = a & (b | c);
type foo10 = (a | b) & c;

View File

@@ -0,0 +1,10 @@
type foo = ?(a | b);
type foo2 = ?(a & b);
type foo3 = (a | b)[];
type foo4 = (a & b)[];
type foo5 = a | b | c;
type foo6 = a & b & c;
type foo7 = (a & b) | c;
type foo8 = a | (b & c);
type foo9 = a & (b | c);
type foo10 = (a | b) & c;