aboutsummaryrefslogtreecommitdiff
path: root/kernel/mod_typing.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mod_typing.ml')
-rw-r--r--kernel/mod_typing.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/mod_typing.ml b/kernel/mod_typing.ml
index 0fb79376ab..b8399ab321 100644
--- a/kernel/mod_typing.ml
+++ b/kernel/mod_typing.ml
@@ -91,13 +91,14 @@ and merge_with env mtb with_decl =
cst2
in
SPBconst {cb with
- const_body = Some j.uj_val;
+ const_body =
+ Some (Lazy.lazy_from_val j.uj_val);
const_constraints = cst}
| Some b ->
- let cst1 = Reduction.conv env' c b in
+ let cst1 = Reduction.conv env' c (Lazy.force_val b) in
let cst = Constraint.union cb.const_constraints cst1 in
SPBconst {cb with
- const_body = Some c;
+ const_body = Some (Lazy.lazy_from_val c);
const_constraints = cst}
end
| With_Module (id, mp) ->