Skip to content

Commit

Permalink
Gestion des niveaux de variables revue dans les declarations de types.
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1021 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
xavierleroy committed Sep 24, 1996
1 parent 8d3c42f commit 460673e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions typing/typedecl.ml
Expand Up @@ -156,6 +156,11 @@ let check_recursive_abbrev env (name, sdecl) (id, decl) =
let transl_type_decl env name_sdecl_list =
(* Enter the types as abstract *)
let (id_list, temp_env) = enter_types env name_sdecl_list in
(* Since we've introduced fresh idents, make sure the definition level
is at least the binding time of these events. Otherwise, passing
one of the recursively-defined type constrs as argument to an
abbreviation may fail. *)
Ctype.init_def(Ident.current_time());
(* Translate each declaration *)
let decls =
List.map2 (transl_declaration temp_env) name_sdecl_list id_list in
Expand Down

0 comments on commit 460673e

Please sign in to comment.