From cf4c0425d2c7a17551eddf3891e36d1b6196cf34 Mon Sep 17 00:00:00 2001
From: Jules Aguillon
Date: Thu, 25 Jul 2024 15:08:24 +0200
Subject: [PATCH] test: Reproduction for #1173
---
test/generators/cases/bugs.ml | 2 ++
test/generators/html/Bugs.html | 23 +++++++++++++++++++++++
test/generators/latex/Bugs.tex | 2 ++
test/generators/man/Bugs.3o | 7 +++++++
4 files changed, 34 insertions(+)
diff --git a/test/generators/cases/bugs.ml b/test/generators/cases/bugs.ml
index 2c9c30bbd7..cece024dc8 100644
--- a/test/generators/cases/bugs.ml
+++ b/test/generators/cases/bugs.ml
@@ -3,3 +3,5 @@ let foo (type a) ?(bar : a opt) () = ()
(** Triggers an assertion failure when
{:https://github.com/ocaml/odoc/issues/101} is not fixed. *)
+let repeat x y = (x, y, x, y)
+(** Renders as [val repeat : 'a -> 'b -> 'c * 'd * 'e * 'f] before https://github.com/ocaml/odoc/pull/1173 *)
diff --git a/test/generators/html/Bugs.html b/test/generators/html/Bugs.html
index 50e7220735..adebafbcf6 100644
--- a/test/generators/html/Bugs.html
+++ b/test/generators/html/Bugs.html
@@ -40,6 +40,29 @@ Module Bugs
+
+
+
+
+ val repeat :
+ 'a
+ ->
+
+ 'b
+ ->
+ 'c *
+ 'd * 'e
+ * 'f
+
+
+
+
+
Renders as
+ val repeat : 'a -> 'b -> 'c * 'd * 'e * 'f
before
+ https://github.com/ocaml/odoc/pull/1173
+
+
+