PR#4261: expand abbreviations one at a time, because we do not know whether expanding to HNF will terminate.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8985 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
47a482380a
commit
636d845eed
|
@ -1236,7 +1236,7 @@ let rec non_recursive_abbrev env ty0 ty =
|
|||
match ty.desc with
|
||||
Tconstr(p, args, abbrev) ->
|
||||
begin try
|
||||
non_recursive_abbrev env ty0 (try_expand_head env ty)
|
||||
non_recursive_abbrev env ty0 (try_expand_once env ty)
|
||||
with Cannot_expand ->
|
||||
if !Clflags.recursive_types then () else
|
||||
iter_type_expr (non_recursive_abbrev env ty0) ty
|
||||
|
|
Loading…
Reference in New Issue