aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-05-24 13:09:57 +0200
committerPierre-Marie Pédrot2018-05-24 13:09:57 +0200
commitaffdcf6d3b66fd446dda09a9e1652e7558b61eaa (patch)
treebc5c2e313a8462c29975be24296c2a35ac68a180 /test-suite
parent4ce199bf63f8e9d209757ddcc25a63fa565f1546 (diff)
parent5af5bff88fa49731acbf24d8a67148e4215446bd (diff)
Merge PR #7328: Fix #7327: coqchk subtyping of polymorphic constants
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/coqchk/univ.v20
1 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/coqchk/univ.v b/test-suite/coqchk/univ.v
index fcd7409272..43815b61ea 100644
--- a/test-suite/coqchk/univ.v
+++ b/test-suite/coqchk/univ.v
@@ -59,3 +59,23 @@ Module CMP_CON.
Definition yo : foo@{U} = foo@{V} := eq_refl.
End CMP_CON.
+
+Set Universe Polymorphism.
+
+Module POLY_SUBTYP.
+
+ Module Type T.
+ Axiom foo : Type.
+ Parameter bar@{u v|u = v} : foo@{u}.
+ End T.
+
+ Module M.
+ Axiom foo : Type.
+ Axiom bar@{u v|u = v} : foo@{v}.
+ End M.
+
+ Module F (A:T). End F.
+
+ Module X := F M.
+
+End POLY_SUBTYP.