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"