diff options
| author | Maxime Dénès | 2018-12-12 10:13:58 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2018-12-12 10:13:58 +0100 |
| commit | 84a950c8e1fa06d0dd764e9a426edbd987a7989e (patch) | |
| tree | 824e99b1dbb0cac36e16b0b1ac871bc3492eb2f1 /pretyping/classops.ml | |
| parent | d87c4c472478fbcb30de6efabc68473ee36849a1 (diff) | |
| parent | 4db7296d629f08c5a71905d8f6d29e2c4e4c0517 (diff) | |
Merge PR #8974: Fix mod_subst wrt universe polymorphism
Diffstat (limited to 'pretyping/classops.ml')
| -rw-r--r-- | pretyping/classops.ml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pretyping/classops.ml b/pretyping/classops.ml index f18040accb..306a76e35e 100644 --- a/pretyping/classops.ml +++ b/pretyping/classops.ml @@ -192,9 +192,11 @@ let subst_cl_typ subst ct = match ct with let c' = subst_proj_repr subst c in if c' == c then ct else CL_PROJ c' | CL_CONST c -> - let c',t = subst_con_kn subst c in - if c' == c then ct else - pi1 (find_class_type Evd.empty (EConstr.of_constr t)) + let c',t = subst_con subst c in + if c' == c then ct else (match t with + | None -> CL_CONST c' + | Some t -> + pi1 (find_class_type Evd.empty (EConstr.of_constr t.Univ.univ_abstracted_value))) | CL_IND i -> let i' = subst_ind subst i in if i' == i then ct else CL_IND i' |
