Преглед изворни кода

[java/cs] FixOverrides should only run for methods

Cauê Waneck пре 11 година
родитељ
комит
282993f7a5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gencommon.ml

+ 1 - 1
gencommon.ml

@@ -10683,7 +10683,7 @@ struct
 							end
 							end
 						with | Not_found -> ()
 						with | Not_found -> ()
 					in
 					in
-					List.iter loop_f iface.cl_ordered_fields
+					List.iter (fun f -> match f.cf_kind with | Var _ -> () | _ -> loop_f f) iface.cl_ordered_fields
 				in
 				in
 				List.iter (fun (iface,itl) -> loop_iface iface itl) c.cl_implements;
 				List.iter (fun (iface,itl) -> loop_iface iface itl) c.cl_implements;
 				(* now go through all overrides, *)
 				(* now go through all overrides, *)