From 2566d45fcc05c1cd80ba2ac16ef342e7f145f01a Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Fri, 14 Sep 2018 12:59:52 +0200 Subject: 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. --- test-suite/bugs/closed/8478.v | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test-suite/bugs/closed/8478.v (limited to 'test-suite') 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 *) -- cgit v1.2.3