(* TEST_BELOW (* Blank lines added here to preserve locations. *) *) module M : sig class c : 'a -> object val x : 'b end end = struct class c x = object val x = x end end class c (x : int) = object inherit M.c x method x : bool = x end let r = (new c 2)#x;; (* TEST flags = " -w -a "; ocamlc_byte_exit_status = "2"; setup-ocamlc.byte-build-env; ocamlc.byte; check-ocamlc.byte-output; *)