The path under Tpackage doesn't refer to a type path (but to a module type path).

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15409 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Alain Frisch 2014-10-01 12:31:24 +00:00
parent e757455115
commit 8feec4d2aa
1 changed files with 1 additions and 1 deletions

View File

@ -775,7 +775,7 @@ let rec update_level env level ty =
if level < get_level env p then raise (Unify [(ty, newvar2 level)]);
iter_type_expr (update_level env level) ty
end
| Tpackage (p, nl, tl) when level < get_level env p ->
| Tpackage (p, nl, tl) when level < Path.binding_time p ->
let p' = normalize_package_path env p in
if Path.same p p' then raise (Unify [(ty, newvar2 level)]);
log_type ty; ty.desc <- Tpackage (p', nl, tl);