Fixed the regression on case clauses (blocks were removed).
This commit is contained in:
parent
4a9150f560
commit
c0f4aaf0c7
@ -718,14 +718,14 @@ and simpl_single_instruction : Raw.instruction -> (_ -> expression result) resul
|
|||||||
LongBlock {value; _} ->
|
LongBlock {value; _} ->
|
||||||
simpl_block value
|
simpl_block value
|
||||||
| ShortBlock {value; _} ->
|
| ShortBlock {value; _} ->
|
||||||
simpl_statements @@ fst value.inside in
|
simpl_statements @@ fst value.inside in
|
||||||
ok (x.value.pattern, case_clause None) in
|
let%bind case_clause = case_clause None in
|
||||||
|
ok (x.value.pattern, case_clause) in
|
||||||
bind_list
|
bind_list
|
||||||
@@ List.map aux
|
@@ List.map aux
|
||||||
@@ npseq_to_list c.cases.value in
|
@@ npseq_to_list c.cases.value in
|
||||||
let%bind m = simpl_cases cases in
|
let%bind m = simpl_cases cases in
|
||||||
let%bind toto = ok @@ e_matching ~loc expr m in
|
return_statement @@ e_matching ~loc expr m
|
||||||
return_statement @@ toto
|
|
||||||
)
|
)
|
||||||
| RecordPatch r -> (
|
| RecordPatch r -> (
|
||||||
let r = r.value in
|
let r = r.value in
|
||||||
|
Loading…
Reference in New Issue
Block a user