diff options
| author | Matthieu Sozeau | 2016-06-13 18:36:58 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2016-06-13 19:05:12 +0200 |
| commit | 784d82dc1a709c4c262665a4cd4eb0b1bd1487a0 (patch) | |
| tree | 6118a94711820d6671dbc7c65cee4e177e71fe48 /test-suite | |
| parent | bb43103f7ecea16e634d448215f24d6d55d56eb1 (diff) | |
Univs: fix for part #2 of bug #4816.
Check that the polymorphic status of everything that
is parameterized in nested sections is coherent.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/4816.v | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4816.v b/test-suite/bugs/closed/4816.v new file mode 100644 index 0000000000..ef79b9869b --- /dev/null +++ b/test-suite/bugs/closed/4816.v @@ -0,0 +1,18 @@ +Section foo. +Polymorphic Universes A B. +Constraint A <= B. +End foo. +(* gives an anomaly Universe undefined *) + +or even, a refinement of #4503: +Require Coq.Classes.RelationClasses. + +Class PreOrder (A : Type) (r : A -> A -> Type) : Type := +{ refl : forall x, r x x }. + +Section foo. + Polymorphic Universes A. + Section bar. + Context {A : Type@{A}} {rA : A -> A -> Prop} {PO : PreOrder A rA}. + End bar. +End foo.
\ No newline at end of file |
