aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMatthieu Sozeau2018-09-20 17:12:12 +0200
committerMatthieu Sozeau2018-09-20 17:12:12 +0200
commit7b6f1f0ed0872cd16d7d01683673fd9323122f30 (patch)
tree2d3e6141d9dd38cc483df6a5ce6a59854519f047 /test-suite
parentdf1f5bcd406a87c77601942f21d16555a8f6086e (diff)
parent69339f8fcfe3e5f3fa1c58feba6b0740c7e86538 (diff)
Merge PR #8297: Fix #7754: universe declarations on mutual inductives
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/7754.v21
1 files changed, 21 insertions, 0 deletions
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.