Rainy 4 月之前
父節點
當前提交
19f41ab81a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -4412,7 +4412,7 @@ let current_virtual_functions_rev clazz base_functions =
       | TFun (args,return_type), Method _  ->
           if (is_override elem ) then
             if List.exists (fun (e,a,r) -> e.cf_name=elem.cf_name ) result then
-               result
+               List.map (fun (e,a,r) -> if e.cf_name<>elem.cf_name then (e,a,r) else (elem,args,return_type) ) result
             else
                (elem,args,return_type) :: result
           else