Mercurial > projects > ddmd
diff dmd/Dsymbol.d @ 58:ecf732dfe11e
Statement.error
Dsymbol.equals
SuperExp.toCBuffer
DotVarExp.isLvalue
FuncExp.toChars
author | korDen |
---|---|
date | Sat, 21 Aug 2010 14:52:59 +0400 |
parents | 51605de93870 |
children | ef02e2e203c2 |
line wrap: on
line diff
--- a/dmd/Dsymbol.d Sat Aug 21 14:46:32 2010 +0400 +++ b/dmd/Dsymbol.d Sat Aug 21 14:52:59 2010 +0400 @@ -169,7 +169,16 @@ bool equals(Object o) { - assert(false); + Dsymbol s; + + if (this is o) + return true; + + s = cast(Dsymbol)(o); + if (s && ident.equals(s.ident)) + return true; + + return false; } bool isAnonymous()