summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-recmod/t13ok.ml
blob: 0b0eb850737559ae04581b65069b0386223e159c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(* TEST
 flags = " -w -a ";
 setup-ocamlc.byte-build-env;
 ocamlc.byte;
 check-ocamlc.byte-output;
*)

(* OK *)
class type [ 'node ] extension = object method node : 'node end
class type [ 'ext ] node = object constraint 'ext = 'ext node #extension end
class x = object method node : x node = assert false end
type t = x node;;