diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2018-06-17 08:19:49 +0200 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2018-06-17 08:19:49 +0200 |
commit | 0651bbfa273b2adc027ddd2cfb59df2fc5ea1330 (patch) | |
tree | 0e909cb9e6bac4e6b46127f88d2ae7d1611ed562 /kernel/modops.ml | |
parent | cee11fc609cb7d7087adabba389a97991e636219 (diff) | |
parent | 45e1e0dcba3101b6a9e096f18c28da899615af7f (diff) |
Merge PR #7616: Fix #7615: Functor inlining drops universe substitution.
Diffstat (limited to 'kernel/modops.ml')
-rw-r--r-- | kernel/modops.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/modops.ml b/kernel/modops.ml index 203817118..22f523a9a 100644 --- a/kernel/modops.ml +++ b/kernel/modops.ml @@ -403,7 +403,8 @@ let inline_delta_resolver env inl mp mbid mtb delta = | Undef _ | OpaqueDef _ -> l | Def body -> let constr = Mod_subst.force_constr body in - add_inline_delta_resolver kn (lev, Some constr) l + let ctx = Declareops.constant_polymorphic_context constant in + add_inline_delta_resolver kn (lev, Some (ctx, constr)) l with Not_found -> error_no_such_label_sub (Constant.label con) (ModPath.to_string (Constant.modpath con)) |