aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-08-22 17:43:12 +0200
committerGaëtan Gilbert2018-09-19 13:21:00 +0200
commit69339f8fcfe3e5f3fa1c58feba6b0740c7e86538 (patch)
treef09548fade8a03d2fb12edc6f58964dd25627eb1 /test-suite
parent6d74efabf11768ca1df3a2f3d5a65d25f7f95b01 (diff)
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.