blob: c8820f7ec8f8fce9ca338037028aa08951d59902 (
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
|}];;
|