aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2015-08-03 10:31:48 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2015-08-03 10:31:48 +0200
commitdda6d8f639c912597d5bf9e4f1d8c2c118b8dc48 (patch)
treedc3fdeb5ed3166b009893fb75b224449aee14941 /test-suite/bugs/closed
parent97fba91264669d495643f6a3de6a09790ae2a1da (diff)
Test file for #4254: Mutual inductives with parameters on Type raises anomaly.
Diffstat (limited to 'test-suite/bugs/closed')
-rw-r--r--test-suite/bugs/closed/4254.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4254.v b/test-suite/bugs/closed/4254.v
new file mode 100644
index 000000000..ef219973d
--- /dev/null
+++ b/test-suite/bugs/closed/4254.v
@@ -0,0 +1,13 @@
+Inductive foo (V:Type):Type :=
+ | Foo : list (bar V) -> foo V
+with bar (V:Type): Type :=
+ | bar1: bar V
+ | bar2 : V -> bar V.
+
+Module WithPoly.
+Polymorphic Inductive foo (V:Type):Type :=
+ | Foo : list (bar V) -> foo V
+with bar (V:Type): Type :=
+ | bar1: bar V
+ | bar2 : V -> bar V.
+End WithPoly.