aboutsummaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/declaremods.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml
index ac5636b58e..72f199efb5 100644
--- a/library/declaremods.ml
+++ b/library/declaremods.ml
@@ -434,10 +434,12 @@ and subst_module_alias ((sp,kn),subst,(entry,substobjs,_)) =
mod_entry_expr =
Some (MSEident mp')},sub),
substobjs, match mbids with
- | [] ->
+ | [] -> let subst = update_subst subst' (map_mp mp' mp) in
Some (subst_objects (dir,(mp',empty_dirpath))
- (join subst' (join (map_msid msid mp')
- (map_mp mp mp'))) objs)
+ (join (join subst' subst) (join (map_msid msid mp')
+ (map_mp mp mp')))
+ objs)
+
| _ -> None)
| _ -> anomaly "Modops: Not an alias"