summaryrefslogtreecommitdiff
path: root/typing
diff options
context:
space:
mode:
authorJérôme Vouillon <Jerome.Vouillon@pps.jussieu.fr>1997-05-12 11:30:03 +0000
committerJérôme Vouillon <Jerome.Vouillon@pps.jussieu.fr>1997-05-12 11:30:03 +0000
commit3e74d646302a680f3dbc71d87e185c8a6fc58900 (patch)
tree3129613717fd4e2b3a07eb00703a326ea71ec2eb /typing
parent102a6bbccc71882fccbb025d5679a0629980e6f6 (diff)
downloadocaml-3e74d646302a680f3dbc71d87e185c8a6fc58900.tar.gz
Bug: [type t = int = A] etait accepte...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1529 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'typing')
-rw-r--r--typing/typedecl.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/typing/typedecl.ml b/typing/typedecl.ml
index eadf625598..634e1868a1 100644
--- a/typing/typedecl.ml
+++ b/typing/typedecl.ml
@@ -211,9 +211,9 @@ let check_abbrev env (_, sdecl) (id, decl) =
Ctype.equal env false args decl.type_params
&&
Includecore.type_declarations env id
+ decl'
(Subst.type_declaration (Subst.add_type id path Subst.identity)
decl)
- decl'
then ()
else raise(Error(sdecl.ptype_loc, Definition_mismatch ty))
with Not_found ->