aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-05-14 13:10:20 +0200
committerGaëtan Gilbert2019-05-14 13:10:20 +0200
commitd0e258175280152e504a296a05ecbd1920bb17c9 (patch)
tree9e7c80e5792c3769d28b04841651d522c4f5c3f1 /test-suite
parent9f11eeefc204bdad029b66f30bc6c52377af63ae (diff)
Fix #10161: occur check when defining an algebraic universe.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_10161.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10161.v b/test-suite/bugs/closed/bug_10161.v
new file mode 100644
index 0000000000..3d262b89fe
--- /dev/null
+++ b/test-suite/bugs/closed/bug_10161.v
@@ -0,0 +1,8 @@
+Inductive SwitchT (A : Type) : Type :=
+| switchT : forall T, SwitchT T -> SwitchT A.
+
+Set Printing Universes.
+
+Fail Inductive UseSwitchT :=
+| useSwitchT : SwitchT UseSwitchT -> UseSwitchT.
+(* used to stack overflow, should be univ inconsistency cannot satisfy u = u+1 *)