Skip to content

Comment attached to include are dropped #645

Closed
@Julow

Description

@Julow
(** [T] decl comment. *)
module type T = sig
  (** [T] top-comment. *)

  type t
end

module M : sig
  (** Attached to [include]. *)
  include T
end

In the example above, the page for M renders like this:

image

The comment attached to the include is not rendered and T's top-comment is placed before the include T folding block.

I'd expect that T's top-comment is moved inside the folding block and the comment attached to the include placed before it:

> include T

Attached to include.

T top-comment

type t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions