fix previous commit

This commit is contained in:
Jeremie Dimino 2014-02-14 10:01:48 +00:00
parent 991ae65caa
commit 6101de8028
2 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@ let find_module = Env.find_module
#else
let lookup_module id env =
let path = Env.lookup_module id env in
(path, Env.find_modtype_expansion path env)
(path, (Env.find_module path env).md_type)
let find_module path env = (Env.find_module path env).md_type
#endif

View File

@ -1007,7 +1007,7 @@ let typeof sid =
let (path, mod_typ) = Env.lookup_module id env in
#else
let path = Env.lookup_module id env in
let mod_typ = Env.find_modtype_expansion path env in
let mod_typ = (Env.find_module path env).Types.md_type in
#endif
let id = Ident.create (Path.name path) in
Some (Printtyp.tree_of_module id mod_typ Types.Trec_not)