Skip to content

Fix incorrect sort in transl #1547

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ocaml/lambda/translcore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ and transl_exp0 ~in_new_scope ~scopes sort e =
event_before ~scopes ifso (transl_exp ~scopes sort ifso),
lambda_unit,
Lambda.layout_unit)
| Texp_sequence(expr1, sort, expr2) ->
sort_must_not_be_void expr1.exp_loc expr1.exp_type sort;
Lsequence(transl_exp ~scopes sort expr1,
| Texp_sequence(expr1, sort', expr2) ->
sort_must_not_be_void expr1.exp_loc expr1.exp_type sort';
Lsequence(transl_exp ~scopes sort' expr1,
event_before ~scopes expr2 (transl_exp ~scopes sort expr2))
| Texp_while {wh_body; wh_body_sort; wh_cond} ->
sort_must_not_be_void wh_body.exp_loc wh_body.exp_type wh_body_sort;
Expand Down