Skip to content

Commit

Permalink
fix compat with 4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Aug 15, 2024
1 parent d5eaf28 commit 3f71278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ppx/tools/ppx_deriving_tools.ml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ module Conv = struct
let is_enum =
List.for_all cases ~f:(fun (_, r) ->
match r with
| `Rtag (_, ts) -> List.is_empty ts
| `Rtag (_, ts) -> (
match ts with [] -> true | _ :: _ -> false)
| `Rinherit _ -> false)
in
is_enum, cases
Expand Down

0 comments on commit 3f71278

Please sign in to comment.