blob: 4e062e0b4529c2436472e53aba975faddcb60960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
(* TEST
flags = " -w -a ";
setup-ocamlc.byte-build-env;
ocamlc.byte;
check-ocamlc.byte-output;
*)
module type Param1 = sig
type 'a r = [< `A of int ] as 'a
val f : ?a:string -> string -> [ `A of _ ] r
end
module Make1 (M : Param1) = struct
include M
let f = f ~a:""
end
module type Param2 = sig
type t
type 'a r = [< `A of t ] as 'a
val f : ?a:string -> string -> [ `A of _ ] r
end
module Make2 (M : Param2) = struct
include M
let f = f ~a:""
end
|