summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-poly-bugs/pr5322_ok.ml
blob: 7534c64f3ecbf9d32df7dea61dee26a7b8c1ffa9 (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