blob: ae796dc03a8fa4dc1906a09135b1843eef2eb688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
(* TEST
flags = " -w -a ";
setup-ocamlc.byte-build-env;
ocamlc.byte;
check-ocamlc.byte-output;
*)
type t = T : t
type s = T
class c = object (self : 'self)
method foo : s -> 'self = function
| T -> self#bar ()
method bar : unit -> 'self = fun () -> self
end
|