Browse Source

bugfix for overridden methods

Nicolas Cannasse 15 years ago
parent
commit
85a9074019
1 changed files with 1 additions and 5 deletions
  1. 1 5
      genxml.ml

+ 1 - 5
genxml.ml

@@ -105,11 +105,7 @@ let gen_class_path name (c,pl) =
 	node name [("path",s_type_path c.cl_path)] (List.map gen_type pl)
 
 let rec exists f c =
-	try
-		let f2 = PMap.find f.cf_name c.cl_fields in
-		not (type_iseq f.cf_type f2.cf_type)
-	with
-		Not_found ->
+	PMap.exists f.cf_name c.cl_fields ||
 			match c.cl_super with
 			| None -> false
 			| Some (csup,_) -> exists f csup