|
@@ -941,8 +941,15 @@ let rec s_type ctx t =
|
|
|
(if b then "?" else "") ^ (if s = "" then "" else s ^ " : ") ^ s_fun ctx t true
|
|
|
) l) ^ " -> " ^ s_fun ctx t false
|
|
|
| TAnon a ->
|
|
|
- let fl = PMap.fold (fun f acc -> ((if Meta.has Meta.Optional f.cf_meta then " ?" else " ") ^ f.cf_name ^ " : " ^ s_type ctx f.cf_type) :: acc) a.a_fields [] in
|
|
|
- "{" ^ (if not (is_closed a) then "+" else "") ^ String.concat "," fl ^ " }"
|
|
|
+ begin
|
|
|
+ match !(a.a_status) with
|
|
|
+ | Statics c -> Printf.sprintf "{ Statics %s }" (s_type_path c.cl_path)
|
|
|
+ | EnumStatics e -> Printf.sprintf "{ EnumStatics %s }" (s_type_path e.e_path)
|
|
|
+ | AbstractStatics a -> Printf.sprintf "{ AbstractStatics %s }" (s_type_path a.a_path)
|
|
|
+ | _ ->
|
|
|
+ let fl = PMap.fold (fun f acc -> ((if Meta.has Meta.Optional f.cf_meta then " ?" else " ") ^ f.cf_name ^ " : " ^ s_type ctx f.cf_type) :: acc) a.a_fields [] in
|
|
|
+ "{" ^ (if not (is_closed a) then "+" else "") ^ String.concat "," fl ^ " }"
|
|
|
+ end
|
|
|
| TDynamic t2 ->
|
|
|
"Dynamic" ^ s_type_params ctx (if t == t2 then [] else [t2])
|
|
|
| TLazy f ->
|