Skip to content

Commit

Permalink
Add missing case for ocaml 5.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoc authored and cknitt committed May 29, 2024
1 parent 5237ff5 commit 30486d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Arnold.ml
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,10 @@ module Compile = struct
| Texp_function (_, Tfunction_cases {cases; _}) ->
#endif
cases |> List.map (case ~ctx) |> Command.nondet
#if OCAML_VERSION < (5, 2, 0)
#else
| Texp_function (_, Tfunction_body e) -> e |> expression ~ctx
#endif
| Texp_match _ when not (expr.exp_desc |> Compat.texpMatchHasExceptions)
-> (
(* No exceptions *)
Expand Down

0 comments on commit 30486d7

Please sign in to comment.