blob: cbc8c5bbaf8e18818b61229c5953ee03e0468399 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
(* TEST
flags = " -w -a "
ocamlc_byte_exit_status = "2"
* setup-ocamlc.byte-build-env
** ocamlc.byte
*** check-ocamlc.byte-output
*)
(* Bad (not regular) *)
module rec M :
sig
class ['a] c : 'a -> object
method map : ('a -> 'b) -> 'b M.c
end
end
= struct
class ['a] c (x : 'a) = object
method map : 'b. ('a -> 'b) -> 'b M.c
= fun f -> new M.c (f x)
end
end;;
|