aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite
diff options
context:
space:
mode:
authorGravatar Jasper Hugunin <jasperh@cs.washington.edu>2018-06-04 17:59:10 -0700
committerGravatar Jasper Hugunin <jasperh@cs.washington.edu>2018-07-01 15:42:26 -0700
commit9b10e2383980c2f210049dfaf4a3031133d36ebd (patch)
tree2ecca45e4185dd698b88130d43bffffd8b82a109 /test-suite
parent29ed1edfa71fec0b72f7286d6396a07cf895e49f (diff)
Add test for Uniform Inductive Parameters
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/uniform_inductive_parameters.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/success/uniform_inductive_parameters.v b/test-suite/success/uniform_inductive_parameters.v
new file mode 100644
index 000000000..42236a531
--- /dev/null
+++ b/test-suite/success/uniform_inductive_parameters.v
@@ -0,0 +1,13 @@
+Set Uniform Inductive Parameters.
+
+Inductive list (A : Type) :=
+ | nil : list
+ | cons : A -> list -> list.
+Check (list : Type -> Type).
+Check (cons : forall A, A -> list A -> list A).
+
+Inductive list2 (A : Type) (A' := prod A A) :=
+ | nil2 : list2
+ | cons2 : A' -> list2 -> list2.
+Check (list2 : Type -> Type).
+Check (cons2 : forall A (A' := prod A A), A' -> list2 A -> list2 A).