From 9545bff8d9c80fb39355c8b44b2f375be8fed543 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 3 Dec 2024 18:42:20 +0100 Subject: [PATCH] Workaround for top-comment bug On 4.04 and 4.06 (but not 4.02) this top-comment is lost. --- test/generators/cases/alerts.mli | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/generators/cases/alerts.mli b/test/generators/cases/alerts.mli index 47f09f3923..d8440d65ff 100644 --- a/test/generators/cases/alerts.mli +++ b/test/generators/cases/alerts.mli @@ -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"]