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

module type S = sig type 'a t end
module type Sp = sig type 'a t = private 'a array end

module Id (S : S) = S

module M : Sp = struct
  include Id (struct type 'a t = 'a array end)
end