Merge branch 'feature/LIGO-429-pascaligo-discrepancy' into 'dev'

[LIGO-429] allow constructor without parameters

Closes LIGO-429

See merge request ligolang/ligo!448
This commit is contained in:
Christian Rinderknecht 2020-02-25 15:39:09 +00:00
commit 09999c2c82

View File

@ -367,7 +367,8 @@ let rec simpl_expression (t:Raw.expr) : expr result =
| EConstr (ConstrApp c) -> (
let ((c, args) , loc) = r_split c in
match args with
None -> simpl_tuple_expression []
None ->
return @@ e_constructor ~loc c.value (e_unit ())
| Some args ->
let args, args_loc = r_split args in
let%bind arg =