blob: 3d0385167f96f1ee6db93d4d2941cc0c93a4f514 (
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
|
(* TEST
expect;
*)
(* PR#6768 *)
type _ prod = Prod : ('a * 'y) prod;;
let f : type t. t prod -> _ = function Prod ->
let module M =
struct
type d = d * d
end
in ()
;;
[%%expect{|
type _ prod = Prod : ('a * 'y) prod
Line 6, characters 6-20:
6 | type d = d * d
^^^^^^^^^^^^^^
Error: The type abbreviation d is cyclic:
d = d * d,
d * d contains d
|}];;
|