Skip to content

Commit

Permalink
compatibility with 4.02
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <[email protected]>
  • Loading branch information
panglesd committed Sep 12, 2023
1 parent cc3610b commit 2ac9780
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ocamlary/ocamlary.mli
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,10 @@ type variant =

(** This comment is for [poly_variant]. *)
type poly_variant =
[ `TagA (** This is a comment for [`TagA] *)
| `ConstrB of int (** This is a comment for [`ConstrB] *) ]
[ `TagA
(* This is a comment for [`TagA]. Disabled for compatibility
with 4.02. *)
| `ConstrB of int (* This is a comment for [`ConstrB] *) ]
(** Wow! It was a polymorphic variant! *)

(** This comment is for [full_gadt]. *)
Expand Down

0 comments on commit 2ac9780

Please sign in to comment.