Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Doc comment dropped from empty .mli file #7701
Original bug ID: 7701
When an .mli file consists of only a (** ... *) comment, the comment does not appear in the signature item list of the signature read from the corresponding .cmti file. By contrast, if the signature includes a comment and some other items, the comment appears in the signature item list.
Steps to reproduce
(** This comment will be lost by the compiler. *)
(** This comment will be kept by the compiler. *)
val foo : unit
let () =
.PHONY : reproduce
.PHONY : clean
Running this (make), the output is:
I would expect the output to be 1, 2.