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

type _ t = C : ((('a -> 'o) -> 'o) -> ('b -> 'o) -> 'o) t
let f : type a o. ((a -> o) -> o) t -> (a -> o) -> o =
 fun C k -> k (fun x -> x);;