summaryrefslogtreecommitdiff
path: root/test-suite/failure/inductive3.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/failure/inductive3.v')
-rw-r--r--test-suite/failure/inductive3.v5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-suite/failure/inductive3.v b/test-suite/failure/inductive3.v
new file mode 100644
index 00000000..e5a4e1b6
--- /dev/null
+++ b/test-suite/failure/inductive3.v
@@ -0,0 +1,5 @@
+(* Check that the nested inductive types positivity check avoids recursively
+ non uniform parameters (at least if these parameters break positivity) *)
+
+Inductive t (A:Type) : Type := c : t (A -> A) -> t A.
+Inductive u : Type := d : u | e : t u -> u.