allow constructor without parameters
This commit is contained in:
parent
bbe7a29881
commit
4c2529b83c
@ -367,7 +367,8 @@ let rec simpl_expression (t:Raw.expr) : expr result =
|
|||||||
| EConstr (ConstrApp c) -> (
|
| EConstr (ConstrApp c) -> (
|
||||||
let ((c, args) , loc) = r_split c in
|
let ((c, args) , loc) = r_split c in
|
||||||
match args with
|
match args with
|
||||||
None -> simpl_tuple_expression []
|
None ->
|
||||||
|
return @@ e_constructor ~loc c.value (e_unit ())
|
||||||
| Some args ->
|
| Some args ->
|
||||||
let args, args_loc = r_split args in
|
let args, args_loc = r_split args in
|
||||||
let%bind arg =
|
let%bind arg =
|
||||||
|
Loading…
Reference in New Issue
Block a user