Browse Source

fix silly field suggestions on enum instances (see #2939)

Simon Krajewski 11 years ago
parent
commit
b2e38f56ae
1 changed files with 0 additions and 1 deletions
  1. 0 1
      typecore.ml

+ 0 - 1
typecore.ml

@@ -196,7 +196,6 @@ let string_error s sl msg =
 
 
 let string_source t = match follow t with
 let string_source t = match follow t with
 	| TInst(c,_) -> List.map (fun cf -> cf.cf_name) c.cl_ordered_fields
 	| TInst(c,_) -> List.map (fun cf -> cf.cf_name) c.cl_ordered_fields
-	| TEnum(en,_) -> en.e_names
 	| TAnon a -> PMap.fold (fun cf acc -> cf.cf_name :: acc) a.a_fields []
 	| TAnon a -> PMap.fold (fun cf acc -> cf.cf_name :: acc) a.a_fields []
 	| TAbstract({a_impl = Some c},_) -> List.map (fun cf -> cf.cf_name) c.cl_ordered_statics
 	| TAbstract({a_impl = Some c},_) -> List.map (fun cf -> cf.cf_name) c.cl_ordered_statics
 	| _ -> []
 	| _ -> []