# HG changeset patch # User korDen # Date 1282387979 -14400 # Node ID ecf732dfe11ea4fd3a832cd581e19fafdb8b266e # Parent 3adbb28755e8c0b582b900664e115b8d15cac1f3 Statement.error Dsymbol.equals SuperExp.toCBuffer DotVarExp.isLvalue FuncExp.toChars diff -r 3adbb28755e8 -r ecf732dfe11e dmd/DotVarExp.d --- a/dmd/DotVarExp.d Sat Aug 21 14:46:32 2010 +0400 +++ b/dmd/DotVarExp.d Sat Aug 21 14:52:59 2010 +0400 @@ -128,7 +128,7 @@ int isLvalue() { - assert(false); + return 1; } Expression toLvalue(Scope sc, Expression e) diff -r 3adbb28755e8 -r ecf732dfe11e dmd/Dsymbol.d --- 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() diff -r 3adbb28755e8 -r ecf732dfe11e dmd/FuncExp.d --- a/dmd/FuncExp.d Sat Aug 21 14:46:32 2010 +0400 +++ b/dmd/FuncExp.d Sat Aug 21 14:52:59 2010 +0400 @@ -91,7 +91,7 @@ string toChars() { - assert(false); + return fd.toChars(); } void toCBuffer(OutBuffer buf, HdrGenState* hgs) diff -r 3adbb28755e8 -r ecf732dfe11e dmd/Statement.d --- a/dmd/Statement.d Sat Aug 21 14:46:32 2010 +0400 +++ b/dmd/Statement.d Sat Aug 21 14:52:59 2010 +0400 @@ -49,7 +49,7 @@ void error(T...)(string format, T t) { - assert(false); + .error(loc, format, t); } void warning(T...)(string format, T t) diff -r 3adbb28755e8 -r ecf732dfe11e dmd/SuperExp.d --- a/dmd/SuperExp.d Sat Aug 21 14:46:32 2010 +0400 +++ b/dmd/SuperExp.d Sat Aug 21 14:52:59 2010 +0400 @@ -104,7 +104,7 @@ void toCBuffer(OutBuffer buf, HdrGenState* hgs) { - assert(false); + buf.writestring("super"); } void scanForNestedRef(Scope sc)