summaryrefslogtreecommitdiffstats
path: root/testsuite/tests/typing-misc/wellfounded.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typing-misc/wellfounded.ml')
-rw-r--r--testsuite/tests/typing-misc/wellfounded.ml11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typing-misc/wellfounded.ml b/testsuite/tests/typing-misc/wellfounded.ml
new file mode 100644
index 000000000..b33adc5e1
--- /dev/null
+++ b/testsuite/tests/typing-misc/wellfounded.ml
@@ -0,0 +1,11 @@
+(* 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 ()
+;;