Fix error message.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13664 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Alain Frisch 2013-05-13 12:15:31 +00:00
parent e86e81323a
commit 7fa05e12d4
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ let rec narrow_unbound_lid_error : 'a. _ -> _ -> _ -> _ -> 'a =
with Not_found ->
narrow_unbound_lid_error env loc mlid
(fun lid -> Unbound_module lid)
| Env.Recmodule ->
raise (Error (loc, env, Illegal_reference_to_recursive_module))
in
begin match lid with
| Longident.Lident _ -> ()