|
@@ -457,7 +457,7 @@ let rec s_type ctx t =
|
|
(if b then "?" else "") ^ (if s = "" then "" else s ^ " : ") ^ s_fun ctx t true
|
|
(if b then "?" else "") ^ (if s = "" then "" else s ^ " : ") ^ s_fun ctx t true
|
|
) l) ^ " -> " ^ s_fun ctx t false
|
|
) l) ^ " -> " ^ s_fun ctx t false
|
|
| TAnon a ->
|
|
| 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
|
|
|
|
|
|
+ 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 ^ " }"
|
|
"{" ^ (if not (is_closed a) then "+" else "") ^ String.concat "," fl ^ " }"
|
|
| TDynamic t2 ->
|
|
| TDynamic t2 ->
|
|
"Dynamic" ^ s_type_params ctx (if t == t2 then [] else [t2])
|
|
"Dynamic" ^ s_type_params ctx (if t == t2 then [] else [t2])
|