Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

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 a771c11 commit a6c5d0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/object_.d
Expand Up @@ -654,7 +654,7 @@ class TypeInfo_Function : TypeInfo
TypeInfo_Function c;
return this is o ||
((c = cast(TypeInfo_Function)o) !is null &&
this.next == c.next);
this.deco == c.deco);
}

// BUG: need to add the rest of the functions
Expand All @@ -665,6 +665,7 @@ class TypeInfo_Function : TypeInfo
}

TypeInfo next;
string deco;
}

class TypeInfo_Delegate : TypeInfo
Expand All @@ -679,7 +680,7 @@ class TypeInfo_Delegate : TypeInfo
TypeInfo_Delegate c;
return this is o ||
((c = cast(TypeInfo_Delegate)o) !is null &&
this.next == c.next);
this.deco == c.deco);
}

// BUG: need to add the rest of the functions
Expand All @@ -693,6 +694,7 @@ class TypeInfo_Delegate : TypeInfo
override uint flags() { return 1; }

TypeInfo next;
string deco;

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

0 comments on commit a6c5d0c

Please sign in to comment.