Skip to content

Commit ed5ac1b

Browse files
committed
Add missing case for ocaml 5.2.
1 parent 5237ff5 commit ed5ac1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Arnold.ml

+4
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,10 @@ module Compile = struct
848848
| Texp_function (_, Tfunction_cases {cases; _}) ->
849849
#endif
850850
cases |> List.map (case ~ctx) |> Command.nondet
851+
#if OCAML_VERSION < (5, 2, 0)
852+
#else
853+
| Texp_function (_, Tfunction_body e) -> e |> expression ~ctx
854+
#endif
851855
| Texp_match _ when not (expr.exp_desc |> Compat.texpMatchHasExceptions)
852856
-> (
853857
(* No exceptions *)

0 commit comments

Comments
 (0)