From 69339f8fcfe3e5f3fa1c58feba6b0740c7e86538 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Wed, 22 Aug 2018 17:43:12 +0200 Subject: Fix #7754: universe declarations on mutual inductives --- test-suite/bugs/closed/7754.v | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test-suite/bugs/closed/7754.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/7754.v b/test-suite/bugs/closed/7754.v new file mode 100644 index 0000000000..229df93773 --- /dev/null +++ b/test-suite/bugs/closed/7754.v @@ -0,0 +1,21 @@ + +Set Universe Polymorphism. + +Module OK. + + Inductive one@{i j} : Type@{i} := + with two : Type@{j} := . + Check one@{Set Type} : Set. + Fail Check two@{Set Type} : Set. + +End OK. + +Module Bad. + + Fail Inductive one := + with two@{i +} : Type@{i} := . + + Fail Inductive one@{i +} := + with two@{i +} := . + +End Bad. -- cgit v1.2.3