Skip to content

Commit 74de92f

Browse files
committed
Workaround for top-comment bug
On 4.04 and 4.06 (but not 4.02) this top-comment is lost.
1 parent eb15618 commit 74de92f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/generators/cases/alerts.mli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ val c : int
1717
(* At the top-level of a module. *)
1818

1919
module Top1 : sig
20+
21+
(* On OCaml 4.04 to 4.06, this top-comment is lost by the parser if there's
22+
no empty line before it. *)
2023
(** Top-comment. *)
2124
end
2225
[@@deprecated "A"]

0 commit comments

Comments
 (0)