Skip to content

Commit

Permalink
Issue 3086 - TypeInfo opEquals returns incorrect results
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 6, 2011
1 parent 50a73be commit 4fe5c5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/object.d
Expand Up @@ -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);
}

Expand All @@ -766,6 +767,7 @@ class TypeInfo_Function : TypeInfo
}

TypeInfo next;
string deco;
}

class TypeInfo_Delegate : TypeInfo
Expand All @@ -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);
}

Expand All @@ -793,6 +796,7 @@ class TypeInfo_Delegate : TypeInfo
uint flags() { return 1; }

TypeInfo next;
string deco;

size_t talign()
{ alias int delegate() dg;
Expand Down

0 comments on commit 4fe5c5c

Please sign in to comment.