Skip to content

References to outside of module types must be fully qualified #750

@Julow

Description

@Julow
module X : sig

  module type T = sig
    (** {!t} *)
  end

  type t

end

module Y : X.T

The reference that's inside X.T won't resolve in the expansion of Y.

Annoyingly, the error message points to the reference and not to Y at all:

File "test.mli", line 4, characters 8-12:
Failed to resolve reference unresolvedroot(t) Couldn't find "t"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions