浏览代码

* consider invokables as related when they're equal

Sven/Sarah Barth 3 年之前
父节点
当前提交
47d7520b32
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      compiler/defcmp.pas

+ 7 - 0
compiler/defcmp.pas

@@ -2764,6 +2764,13 @@ implementation
             exit;
           end;
 
+        if is_funcref(realself) and is_funcref(otherdef) then
+          begin
+            result:=(funcref_equal(tobjectdef(realself),tobjectdef(otherdef))>=te_equal);
+            if result then
+              exit;
+          end;
+
         { Objective-C protocols and Java interfaces can use multiple
            inheritance }
         if (realself.objecttype in [odt_objcprotocol,odt_interfacejava]) then