File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ cartesian_product:
136
136
| x = annot_expr STAR l = cartesian_product { x :: l }
137
137
| x = annot_expr STAR y = annot_expr { [ x; y ] }
138
138
| x = annot_expr { [ x ] }
139
+ | { [] }
139
140
;
140
141
141
142
annot_expr:
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ discarding white\rval{space} and \rval{comment}s.
380
380
381
381
\lval {expr-body} & ::= & \rval {args}? \rval {lident} & \\
382
382
& | & \str {(}
383
- \rval {cell} (\str {*} \rval {cell})*
383
+ ( \rval {cell} (\str {*} \rval {cell})*)?
384
384
\str {)} & \com {tuple type} \\
385
385
& | & \str {\{ }
386
386
((\rval {field} (\str {;} \rval {field})*) \str {;}?)?
Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ type tuple = (z * z * tuple option * kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
56
56
57
57
type tuple2 = (int * float)
58
58
59
+ type singleton = (int)
60
+ type zero_tuple = ()
61
+
59
62
type 'a i1 =
60
63
[ inherit 'a j2
61
64
| I1 ]
You can’t perform that action at this time.
0 commit comments