aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-09-14 12:59:52 +0200
committerGaëtan Gilbert2018-09-27 13:28:33 +0200
commit2566d45fcc05c1cd80ba2ac16ef342e7f145f01a (patch)
treeda9b8f3d9574f467ae494dba4acb703f726c06c9 /test-suite
parent49e9fe1c4666beda099872988144d12138dc6349 (diff)
Fix #8478: Undeclared universe anomaly with sections
Instead of looking into the name-oriented structure we look into the actual section structures. Note: together with #8475 this lets us remove UnivNames.add_global_universe.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/8478.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/8478.v b/test-suite/bugs/closed/8478.v
new file mode 100644
index 0000000000..8baaf8686a
--- /dev/null
+++ b/test-suite/bugs/closed/8478.v
@@ -0,0 +1,11 @@
+Set Universe Polymorphism.
+Set Printing Universes.
+Unset Strict Universe Declaration.
+
+Monomorphic Universe v.
+
+Section Foo.
+ Let bar := Type@{u}.
+ Fail Monomorphic Constraint bar.u < v.
+
+End Foo. (* was anomaly undeclared universe due to the constraint *)