From d0e258175280152e504a296a05ecbd1920bb17c9 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Tue, 14 May 2019 13:10:20 +0200 Subject: Fix #10161: occur check when defining an algebraic universe. --- test-suite/bugs/closed/bug_10161.v | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-suite/bugs/closed/bug_10161.v (limited to 'test-suite') 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 *) -- cgit v1.2.3