|
1 | | -let #Instance = i; |
2 | | -let #Instance as inst = i; |
| 1 | +let #Instance = i; |
| 2 | +let #Instance as inst = i; |
3 | 3 |
|
4 | 4 | let #Instance(component) = i |
5 | 5 | let #Instance(component) as inst = i |
@@ -31,17 +31,17 @@ switch x { |
31 | 31 | | #Instance as inst => () |
32 | 32 | | #Instance(comp) => () |
33 | 33 | | #Instance(comp) as inst => () |
34 | | -| #Instance({render, subtree}) => () |
35 | | -| #Instance({render, subtree}, inst) => () |
| 34 | +| #Instance({render, subtree}) => () |
| 35 | +| #Instance({render, subtree}, inst) => () |
36 | 36 | | #Instance({render, subtree} : Instance.t) => () |
37 | 37 | | #Instance(({render, subtree} : Instance.t)) => () |
38 | 38 | | #Instance(comp, tree) => () |
39 | 39 | | (#Instance(comp: Component.t) : React.t) => () |
40 | 40 | } |
41 | 41 |
|
42 | 42 |
|
43 | | -let f = (#Instance) => i; |
44 | | -let f = (#Instance as i) => i; |
| 43 | +let f = (#Instance) => i; |
| 44 | +let f = (#Instance as i) => i; |
45 | 45 |
|
46 | 46 | let f = (#Instance(component)) => i |
47 | 47 | let f = (#Instance(component,)) => i // trailing comma |
@@ -79,22 +79,22 @@ for (#Point({x, y, z}) in x to y) { () } |
79 | 79 | for (#Point({x, y, z}) as p in x to y) { () } |
80 | 80 |
|
81 | 81 | switch x { |
82 | | - | ##typeVar => () |
| 82 | + | #...typeVar => () |
83 | 83 | | #lowercase => () |
84 | 84 | } |
85 | | - |
| 85 | + |
86 | 86 | let cmp = (selectedChoice, value) => |
87 | 87 | switch (selectedChoice, value) { |
88 | | - | (##a, ##a) => true |
89 | | - | [##b, ##b] => true |
90 | | - | list[##b, ##b] => true |
91 | | - | {x: ##c, y: ##c} => true |
92 | | - | Constructor(##a, ##a) => true |
93 | | - | #Constuctor(##a, ##a) => true |
94 | | - | ##a as x => true |
95 | | - | ##a | ##b => true |
96 | | - | (##a : typ) => true |
97 | | - | lazy ##a => true |
98 | | - | exception ##a => true |
| 88 | + | (#...a, #...a) => true |
| 89 | + | [#...b, #...b] => true |
| 90 | + | list[#...b, #...b] => true |
| 91 | + | {x: #...c, y: #...c} => true |
| 92 | + | Constructor(#...a, #...a) => true |
| 93 | + | #Constuctor(#...a, #...a) => true |
| 94 | + | #...a as x => true |
| 95 | + | # ...a | # ... b => true |
| 96 | + | (#...a : typ) => true |
| 97 | + | lazy #...a => true |
| 98 | + | exception #...a => true |
99 | 99 | | _ => false |
100 | 100 | } |
0 commit comments