aboutsummaryrefslogtreecommitdiff
path: root/test-suite/success
diff options
context:
space:
mode:
authorMatthieu Sozeau2018-07-02 20:12:46 +0200
committerMatthieu Sozeau2018-07-02 20:12:46 +0200
commitce848730137bd1bf1f12f88ec782c935e742d84c (patch)
treed2a2d90cd2070010fb76e0f549cb23e31501f623 /test-suite/success
parentb7d81ff8e1c715a3fe587d6bcaa6d132647ebd30 (diff)
parentffb3ab4108fa7b6a8f03b865d6287663fc3743e5 (diff)
Merge PR #7703: Add an option to force parameters to be uniform
Diffstat (limited to 'test-suite/success')
-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 0000000000..42236a5313
--- /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).