aboutsummaryrefslogtreecommitdiff
path: root/pretyping/recordops.ml
diff options
context:
space:
mode:
authorMaxime Dénès2018-12-12 10:13:58 +0100
committerMaxime Dénès2018-12-12 10:13:58 +0100
commit84a950c8e1fa06d0dd764e9a426edbd987a7989e (patch)
tree824e99b1dbb0cac36e16b0b1ac871bc3492eb2f1 /pretyping/recordops.ml
parentd87c4c472478fbcb30de6efabc68473ee36849a1 (diff)
parent4db7296d629f08c5a71905d8f6d29e2c4e4c0517 (diff)
Merge PR #8974: Fix mod_subst wrt universe polymorphism
Diffstat (limited to 'pretyping/recordops.ml')
-rw-r--r--pretyping/recordops.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/pretyping/recordops.ml b/pretyping/recordops.ml
index 0c4a2e2a99..6e3b19ae61 100644
--- a/pretyping/recordops.ml
+++ b/pretyping/recordops.ml
@@ -71,12 +71,12 @@ let subst_structure (subst,((kn,i),id,kl,projs as obj)) =
(* invariant: struc.s_PROJ is an evaluable reference. Thus we can take *)
(* the first component of subst_con. *)
List.Smart.map
- (Option.Smart.map (fun kn -> fst (subst_con_kn subst kn)))
+ (Option.Smart.map (subst_constant subst))
projs
in
- let id' = fst (subst_constructor subst id) in
- if projs' == projs && kn' == kn && id' == id then obj else
- ((kn',i),id',kl,projs')
+ let id' = subst_constructor subst id in
+ if projs' == projs && kn' == kn && id' == id then obj else
+ ((kn',i),id',kl,projs')
let discharge_structure (_,x) = Some x