summaryrefslogtreecommitdiff
path: root/kernel/modops.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2010-07-01 17:21:14 +0200
committerGravatar Stephane Glondu <steph@glondu.net>2010-07-01 17:21:14 +0200
commitda178a880e3ace820b41d38b191d3785b82991f5 (patch)
tree6356ab3164a5ad629f4161dc6c44ead74edc2937 /kernel/modops.ml
parente4282ea99c664d8d58067bee199cbbcf881b60d5 (diff)
Imported Upstream version 8.2pl2+dfsgupstream/8.2.pl2+dfsg
Diffstat (limited to 'kernel/modops.ml')
-rw-r--r--kernel/modops.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/modops.ml b/kernel/modops.ml
index 949a7402..34d9e930 100644
--- a/kernel/modops.ml
+++ b/kernel/modops.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(*i $Id: modops.ml 11923 2009-02-13 12:20:27Z soubiran $ i*)
+(*i $Id: modops.ml 12234 2009-07-09 09:14:09Z soubiran $ i*)
(*i*)
open Util
@@ -143,11 +143,13 @@ let rec subst_with_body sub = function
and subst_modtype sub mtb =
let typ_expr' = subst_struct_expr sub mtb.typ_expr in
- if typ_expr'==mtb.typ_expr then
+ let sub_mtb = join_alias mtb.typ_alias sub in
+ if typ_expr'==mtb.typ_expr && sub_mtb==mtb.typ_alias then
mtb
else
{ mtb with
- typ_expr = typ_expr'}
+ typ_expr = typ_expr';
+ typ_alias = sub_mtb}
and subst_structure sub sign =
let subst_body = function