summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-recmod/t14bad.ml
blob: 1b92a28c5c1b2229f57775110a845098db6b9a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(* Bad - PR 4261 *)

module PR_4261 = struct
  module type S =
  sig
    type t
  end

  module type T =
  sig
    module D : S
    type t = D.t
  end

  module rec U : T with module D = U' = U
  and U' : S with type t = U'.t = U
end;;