module rec Person: sig include module type of (struct
type t = {
name: string;
pet: Cat.t;
}
end : sig end)
end = Person
and Cat:sig
type t = {
name: string;
isLazy: bool;
}
end = Cat
It complains about unbound type Cat.t
, if I comment that line, everything is fine, is this a bug or expected behavior?
The error is Error: Illegal recursive module reference