aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Sozeau2020-03-01 13:32:55 +0100
committerMatthieu Sozeau2020-03-01 13:40:42 +0100
commitadd9c92bed5d570d3fb4073619d8b4eb84d86848 (patch)
tree30e3147f1b4dc624909bc5c866b999d9928ce251
parent50de1d310fb5a0d94fe7449f622fb5c4b751a46c (diff)
test-suite file for spurious universe generation
-rw-r--r--test-suite/bugs/closed/bug_11722.v20
1 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11722.v b/test-suite/bugs/closed/bug_11722.v
new file mode 100644
index 0000000000..d4bd5f48b2
--- /dev/null
+++ b/test-suite/bugs/closed/bug_11722.v
@@ -0,0 +1,20 @@
+Require Import Program.
+Set Universe Polymorphism.
+
+Inductive paths@{i} (A : Type@{i}) (a : A) : A -> Type@{i} :=
+ idpath : paths A a a.
+
+Inductive nat :=
+ | O : nat
+ | S : nat -> nat.
+
+Axiom cheat : forall {A}, A.
+
+Program Definition foo@{i} : forall x : nat, paths@{i} nat x x := _.
+Next Obligation.
+ destruct x.
+ constructor.
+ apply cheat.
+Defined. (* FIXED: Universe unbound error *)
+
+Check foo@{_}.