aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/declaremods.ml
diff options
context:
space:
mode:
authorGravatar soubiran <soubiran@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-10-28 13:35:12 +0000
committerGravatar soubiran <soubiran@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-10-28 13:35:12 +0000
commit52973d783e8a97680ea48b5e2fb43f7bc15c42c5 (patch)
tree777b383bfbc8996cdeb55f27951d503c92db3cbd /library/declaremods.ml
parente60054fe4dbdc26ed545c7ca6fb8ab36b244f2f7 (diff)
Correction bug 1979.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11513 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/declaremods.ml')
-rw-r--r--library/declaremods.ml8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml
index 2de77c29a..80312cc12 100644
--- a/library/declaremods.ml
+++ b/library/declaremods.ml
@@ -597,9 +597,13 @@ let rec replace_module_object idl (subst, mbids, msid, lib_stack) modobjs mp =
mod_entry_expr = Some (MSEident mp)},None)
,modobjs,None))::tail
| _ ->
- let (_,substobjs,_) = out_module obj in
+ let (a,substobjs,_) = if tag = "MODULE ALIAS" then
+ out_module_alias obj else out_module obj in
let substobjs' = replace_module_object idl substobjs modobjs mp in
- (id, in_module (None,substobjs',None))::tail
+ if tag = "MODULE ALIAS" then
+ (id, in_module_alias (a,substobjs',None))::tail
+ else
+ (id, in_module (None,substobjs',None))::tail
)
else error "MODULE expected!"
| idl,lobj::tail -> lobj::replace_idl (idl,tail)