aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2018-02-19 10:10:42 +0100
committerMaxime Dénès2018-02-19 10:10:42 +0100
commit08cbbdbcdf3456b9e1a0e688b13f431a946f3bad (patch)
tree9ceea18958a288342846dd77d55ad2aace585a4f /test-suite
parentb2bc3eb2a2de6d0834bd6066d2b78c7ba0ed23f3 (diff)
parent4b7c0d2caad07f7d1199f37f86ae9830c09d81ca (diff)
Merge PR #6772: Cleanup inferCumulativity
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/cumulativity.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/success/cumulativity.v b/test-suite/success/cumulativity.v
index 1fb3abfe41..e05762477d 100644
--- a/test-suite/success/cumulativity.v
+++ b/test-suite/success/cumulativity.v
@@ -124,3 +124,13 @@ Inductive Mut1 A :=
with Mut2 A :=
| Base2 : Type -> Mut2 A
| Node2 : Mut1 A -> Mut2 A.
+
+(* If we don't reduce T while inferring cumulativity for the
+ constructor we will see a Rel and believe i is irrelevant. *)
+Inductive withparams@{i j} (T:=Type@{i}:Type@{j}) := mkwithparams : T -> withparams.
+
+Definition withparams_co@{i i' j|i < i', i' < j} : withparams@{i j} -> withparams@{i' j}
+ := fun x => x.
+
+Fail Definition withparams_not_irr@{i i' j|i' < i, i' < j} : withparams@{i j} -> withparams@{i' j}
+ := fun x => x.