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:
commit
09999c2c82
@ -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