|
@@ -105,9 +105,9 @@ with Error((Module_not_found _ | Type_not_found _),p2) when p = p2 ->
|
|
|
*)
|
|
|
let load_type_def ctx p t =
|
|
|
let no_pack = t.tpackage = [] in
|
|
|
+ if t == Parser.magic_type_path then raise_fields (DisplayToplevel.collect ctx None NoValue) CRTypeHint None;
|
|
|
(* The type name is the module name or the module sub-type name *)
|
|
|
let tname = (match t.tsub with None -> t.tname | Some n -> n) in
|
|
|
- if tname = "" then raise_fields (DisplayToplevel.collect ctx None NoValue) CRTypeHint None;
|
|
|
try
|
|
|
(* If there's a sub-type, there's no reason to look in our module or its imports *)
|
|
|
if t.tsub <> None then raise Not_found;
|