blob: 7081bea80c91def0adf56ee15c37a98ec8210b67 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
(* TEST_BELOW
(* Blank lines added here to preserve locations. *)
*)
(* PR#7314 *)
module type Comparable = sig
val id: int
end
module Make_graph (P:sig module Id:Comparable end) = struct
let foo = P.Id.id
end
module Fold_ordered(P: sig module Id:Comparable end) =
struct
include Make_graph(struct module Id = P.Id end)
end
(* PR#7314 *)
module M = struct
module N = struct end
end
module O = M.N
(***************)
let () =
(* M is unused, but no warning was emitted before 4.10. *)
let module M = struct end in
()
(* TEST
flags = "-w +A-67";
setup-ocamlc.byte-build-env;
compile_only = "true";
ocamlc.byte;
check-ocamlc.byte-output;
*)
|