jonludlam / odoc

Documentation compiler for OCaml and Reason
Other
0 stars 0 forks source link

Fix stack overflow on classes #33

Closed Julow closed 4 years ago

Julow commented 4 years ago

Fixes the small reproduction case in https://github.com/ocaml/odoc/issues/388

This fixes the bug but the output for classes is not great and should be reworked.

The output for:

class foo =
  object(o)
    method test () = o
  end

is:

method test : < test : unit -> 'a; .. > -> unit -> 'a