Skip to content

Commit

Permalink
Workaround for top-comment bug
Browse files Browse the repository at this point in the history
On 4.04 and 4.06 (but not 4.02) this top-comment is lost.
  • Loading branch information
Julow committed Dec 3, 2024
1 parent 117562d commit 9545bff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/generators/cases/alerts.mli
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ val c : int
(* At the top-level of a module. *)

module Top1 : sig

(* On OCaml 4.04 to 4.06, this top-comment is lost by the parser if there's
no empty line before it. *)
(** Top-comment. *)
end
[@@deprecated "A"]
Expand Down

0 comments on commit 9545bff

Please sign in to comment.