Skip to content

Commit

Permalink
Fix deferred ap in ExpToSegment
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Dec 2, 2024
1 parent 100f8ef commit 8d20dee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/haz3lcore/pretty/ExpToSegment.re
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,14 @@ let rec exp_to_pretty = (~settings: Settings.t, exp: Exp.t): pretty => {
"ap_exp",
id,
[
List.flatten(
List.map2(
(id, e) => [mk_form("comma_exp", id, [])] @ e,
ids,
es,
(es |> List.hd)
@ List.flatten(
List.map2(
(id, e) => [mk_form("comma_exp", id, [])] @ e,
ids |> List.tl,
es |> List.tl,
),
),
),
],
),
];
Expand Down

0 comments on commit 8d20dee

Please sign in to comment.