diff options
| author | Gaëtan Gilbert | 2018-08-21 20:05:42 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2018-08-28 12:49:10 +0200 |
| commit | 6c1783de49e0b11f65cc511a94e9ce37f7210562 (patch) | |
| tree | 82885969be4abd7de53c7ebe99a7ef6385df9d6f /pretyping | |
| parent | f885e8a88620351d9dc4b0969f520d13197f2184 (diff) | |
Fix #8288: cumulativity inferance ignores args to bound variables
(NB: only variables whose binder is inside the constructor argument,
ie
Inductive foo := C : forall A : Type -> Type, A Type -> foo.
does not trigger the bug because A becomes a RelKey.)
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/inferCumulativity.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretyping/inferCumulativity.ml b/pretyping/inferCumulativity.ml index eb283a0220..be79b8b07d 100644 --- a/pretyping/inferCumulativity.ml +++ b/pretyping/inferCumulativity.ml @@ -99,7 +99,7 @@ let rec infer_fterm cv_pb infos variances hd stk = | FEvar ((_,args),e) -> let variances = infer_stack infos variances stk in infer_vect infos variances (Array.map (mk_clos e) args) - | FRel _ -> variances + | FRel _ -> infer_stack infos variances stk | FFlex fl -> let variances = infer_table_key infos variances fl in infer_stack infos variances stk |
