summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-modules-bugs/pr7082_ok.ml
blob: 59f714acfa10a8e40eca25b927dc32fdcf7705be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(* TEST
 flags = " -w -a ";
 setup-ocamlc.byte-build-env;
 ocamlc.byte;
 check-ocamlc.byte-output;
*)

module type FOO = sig type t end
module type BAR =
sig
  (* Works: module rec A : (sig include FOO with type t = < b:B.t > end) *)
  module rec A : (FOO with type t = < b:B.t >)
         and B : FOO
end