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

type 'par t = 'par
module M : sig val x : <m : 'a. 'a> end =
  struct let x : <m : 'a. 'a t> = Obj.magic () end

let ident v = v
class alias = object method alias : 'a . 'a t -> 'a = ident end