https://issues.dlang.org/show_bug.cgi?id=15367

--- Comment #1 from Ketmar Dark <[email protected]> ---
and a fix:

diff --git a/src/object.d b/src/object.d
index 4ce7670..84de07a 100644
--- a/src/object.d
+++ b/src/object.d
@@ -770,6 +770,12 @@ class TypeInfo_Delegate : TypeInfo
         return c && this.deco == c.deco;
     }

+    override bool equals(in void* p1, in void* p2) const
+    {
+        alias dg = void delegate (int);
+        return *cast(dg *)p1 == *cast(dg *)p2;
+    }
+
     // BUG: need to add the rest of the functions

     override @property size_t tsize() nothrow pure const

--

Reply via email to