aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/5347.v
diff options
context:
space:
mode:
authorGravatar Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>2017-11-17 23:48:21 +0100
committerGravatar Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net>2017-11-25 14:18:35 +0100
commit4940f99922b0784d726b7c50abe63395713f012f (patch)
tree750124bae7b6a575d98b9cfe439c798c555fc531 /test-suite/bugs/closed/5347.v
parentf8e639f3b81ae142f5b529be1ad90210fc259375 (diff)
Fix #5347: unify declaration of axioms with and without bound univs.
Note that this makes the following syntax valid: Axiom foo@{i} bar : Type@{i}. (ie putting a universe declaration on the first axiom in the list, the declaration then holds for the whole list).
Diffstat (limited to 'test-suite/bugs/closed/5347.v')
-rw-r--r--test-suite/bugs/closed/5347.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5347.v b/test-suite/bugs/closed/5347.v
new file mode 100644
index 000000000..9267b3eb6
--- /dev/null
+++ b/test-suite/bugs/closed/5347.v
@@ -0,0 +1,10 @@
+Set Universe Polymorphism.
+
+Axiom X : Type.
+(* Used to declare [x0@{u1 u2} : X@{u1}] and [x1@{} : X@{u2}] leaving
+ the type of x1 with undeclared universes. After PR #891 this should
+ error at declaration time. *)
+Axiom x₀ x₁ : X.
+Axiom Xᵢ : X -> Type.
+
+Check Xᵢ x₁. (* conversion test raised anomaly universe undefined *)