Skip to content

Commit dadc5cc

Browse files
committed
Compatibility with <=4.06
1 parent a263221 commit dadc5cc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

test/cases/toplevel_comments.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module type Include_inline_T' = sig
3737
end
3838

3939
module M : sig
40+
4041
(** Doc of [M] *)
4142
end
4243

@@ -45,6 +46,7 @@ module M' : sig end
4546

4647
(** Doc of [M''], part 1. *)
4748
module M'' : sig
49+
4850
(** Doc of [M''], part 2. *)
4951
end
5052

test/xref2/module_list.t/main.mli

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,29 @@ module Internal : sig
1414
@canonical Main.C1 *)
1515

1616
module C2 : sig
17+
1718
(* Doc for [C2]. *)
1819
end
1920
(** @canonical Main.C2 *)
2021
end
2122

2223
module Z : sig
24+
2325
(** Doc for [Z]. *)
2426
end
2527

2628
module F () : sig
29+
2730
(** Doc for [F ()]. *)
2831
end
2932

3033
module Type_of : module type of F ()
3134

35+
(* Without the extra blank lines in sig/struct, OCaml<4.06 doesn't see the doc
36+
comments. *)
37+
3238
module Type_of_str : module type of struct
39+
3340
(** Doc of [Type_of_str]. *)
3441
end
3542

test/xref2/references_to_pages.t/bad_references.mli

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
(** *)
1+
(* Make sure that the next doc comment is not the top-comment. *)
2+
type t
23

34
(** Page not found: {!page-not_found} *)
45

0 commit comments

Comments
 (0)