aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoq2002-11-08 11:00:41 +0000
committercoq2002-11-08 11:00:41 +0000
commit4784a0690e760e48d5c3566b01df500d321c14eb (patch)
tree56a136a262f486414cc2dcc75e9a7885faab9300
parenta4cbdfb1cc8180224b1d6242923a7372ad358901 (diff)
Correction bug PR#222
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3224 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--library/declaremods.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/declaremods.ml b/library/declaremods.ml
index 397104d7b5..6cae78bba4 100644
--- a/library/declaremods.ml
+++ b/library/declaremods.ml
@@ -475,10 +475,10 @@ let end_module id =
let substituted = subst_substobjs dir mp substobjs in
let node = in_module (None,substobjs,substituted) in
let objects =
- if keep = [] then
- special@[node]
+ if keep = [] || mbids <> [] then
+ special@[node] (* no keep objects or we are defining a functor *)
else
- special@[node;in_modkeep keep]
+ special@[node;in_modkeep keep] (* otherwise *)
in
let newoname = Lib.add_leaves id objects in