diff options
| author | Matthieu Sozeau | 2018-07-02 20:12:46 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2018-07-02 20:12:46 +0200 |
| commit | ce848730137bd1bf1f12f88ec782c935e742d84c (patch) | |
| tree | d2a2d90cd2070010fb76e0f549cb23e31501f623 /test-suite/success | |
| parent | b7d81ff8e1c715a3fe587d6bcaa6d132647ebd30 (diff) | |
| parent | ffb3ab4108fa7b6a8f03b865d6287663fc3743e5 (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.v | 13 |
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). |
