Mercurial > projects > ddmd
diff dmd/ExpInitializer.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | 10317f0c89a5 |
children | ef02e2e203c2 |
line wrap: on
line diff
--- a/dmd/ExpInitializer.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/ExpInitializer.d Sat Aug 28 16:19:48 2010 +0200 @@ -26,12 +26,12 @@ this.exp = exp; } - Initializer syntaxCopy() + override Initializer syntaxCopy() { return new ExpInitializer(loc, exp.syntaxCopy()); } - Initializer semantic(Scope sc, Type t) + override Initializer semantic(Scope sc, Type t) { //printf("ExpInitializer.semantic(%s), type = %s\n", exp.toChars(), t.toChars()); exp = exp.semantic(sc); @@ -70,7 +70,7 @@ return this; } - Type inferType(Scope sc) + override Type inferType(Scope sc) { //printf("ExpInitializer::inferType() %s\n", toChars()); exp = exp.semantic(sc); @@ -91,17 +91,17 @@ return t; } - Expression toExpression() + override Expression toExpression() { return exp; } - void toCBuffer(OutBuffer buf, HdrGenState* hgs) + override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } - dt_t* toDt() + override dt_t* toDt() { dt_t* dt = null; @@ -111,5 +111,5 @@ return dt; } - ExpInitializer isExpInitializer() { return this; } -} \ No newline at end of file + override ExpInitializer isExpInitializer() { return this; } +}