aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/class.ml
diff options
context:
space:
mode:
Diffstat (limited to 'toplevel/class.ml')
-rw-r--r--toplevel/class.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/toplevel/class.ml b/toplevel/class.ml
index 14473e46f..f9ce75bba 100644
--- a/toplevel/class.ml
+++ b/toplevel/class.ml
@@ -217,7 +217,8 @@ let build_id_coercion idf_opt source =
in
let constr_entry = (* Cast is necessary to express [val_f] is identity *)
DefinitionEntry
- { const_entry_body = mkCast (val_f, DEFAULTcast, typ_f);
+ { const_entry_body = Future.from_val
+ (mkCast (val_f, DEFAULTcast, typ_f),Declareops.no_seff);
const_entry_secctx = None;
const_entry_type = Some typ_f;
const_entry_opaque = false;