Allow "type t = A" instead of forcing "A | ..."
This commit is contained in:
parent
f2bc010135
commit
a273170a31
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ type_dec:
|
|||
;
|
||||
|
||||
enum_ty_desc:
|
||||
| Constructor BAR Constructor {[$1;$3]}
|
||||
| Constructor {[$1]}
|
||||
| BOOL BAR BOOL {[(if $1 then "true" else "false");
|
||||
(if $3 then "true" else "false")]}
|
||||
| Constructor BAR enum_ty_desc {$1 :: $3}
|
||||
|
|
Loading…
Reference in a new issue