From 52973d783e8a97680ea48b5e2fb43f7bc15c42c5 Mon Sep 17 00:00:00 2001 From: soubiran Date: Tue, 28 Oct 2008 13:35:12 +0000 Subject: Correction bug 1979. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11513 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/declaremods.ml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'library') diff --git a/library/declaremods.ml b/library/declaremods.ml index 2de77c29ad..80312cc122 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) -- cgit v1.2.3