From 4fe5c5c760af2ef0f61429bf0b9c128c2a663f9a Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Tue, 5 Apr 2011 20:34:53 -0700 Subject: [PATCH] Issue 3086 - TypeInfo opEquals returns incorrect results --- internal/object.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/object.d b/internal/object.d index ef730dac78a..b18e7c1ce78 100644 --- a/internal/object.d +++ b/internal/object.d @@ -755,6 +755,7 @@ class TypeInfo_Function : TypeInfo return this is o || ((c = cast(TypeInfo_Function)o) !is null && +// this.deco == c.deco); this.next == c.next); } @@ -766,6 +767,7 @@ class TypeInfo_Function : TypeInfo } TypeInfo next; + string deco; } class TypeInfo_Delegate : TypeInfo @@ -780,6 +782,7 @@ class TypeInfo_Delegate : TypeInfo return this is o || ((c = cast(TypeInfo_Delegate)o) !is null && +// this.deco == c.deco); this.next == c.next); } @@ -793,6 +796,7 @@ class TypeInfo_Delegate : TypeInfo uint flags() { return 1; } TypeInfo next; + string deco; size_t talign() { alias int delegate() dg;