diff options
| author | coq | 2003-01-22 10:04:13 +0000 |
|---|---|---|
| committer | coq | 2003-01-22 10:04:13 +0000 |
| commit | 314333e2ce7c06293ab6e5292b2927afb75b6a6f (patch) | |
| tree | 0af2af425e99e771a9279616850f660a97a1f60b /library | |
| parent | e4c997965f822488376fde2bb34285d3ec943a20 (diff) | |
Bug 'with Module' corrige
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3573 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
| -rw-r--r-- | library/declaremods.ml | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml index 5dba4c208e..58e672433d 100644 --- a/library/declaremods.ml +++ b/library/declaremods.ml @@ -500,21 +500,25 @@ let end_module id = let dir = fst oldprefix in let msid = msid_of_prefix oldprefix in + let substobjs = try + match res_o with + | None -> + empty_subst, mbids, msid, substitute + | Some (MTEident ln) -> + abstract_substobjs mbids (KNmap.find ln (!modtypetab)) + | Some (MTEsig (msid,_)) -> + todo "Anonymous signatures not supported"; + empty_subst, mbids, msid, [] + | Some (MTEwith _ as mty) -> + abstract_substobjs mbids (get_modtype_substobjs mty) + | Some (MTEfunsig _) -> + anomaly "Funsig cannot be here..." + with + Not_found -> anomaly "Module objects not found..." + in + Summary.unfreeze_other_summaries fs; - let substobjs = match res_o with - | None -> - empty_subst, mbids, msid, substitute - | Some (MTEident ln) -> - abstract_substobjs mbids (KNmap.find ln (!modtypetab)) - | Some (MTEsig (msid,_)) -> - todo "Anonymous signatures not supported"; - empty_subst, mbids, msid, [] - | Some (MTEwith _ as mty) -> - abstract_substobjs mbids (get_modtype_substobjs mty) - | Some (MTEfunsig _) -> - anomaly "Funsig cannot be here..." - in let substituted = subst_substobjs dir mp substobjs in let node = in_module (None,substobjs,substituted) in let objects = |
