Mercurial > projects > ddmd
diff dmd/TypeTypeof.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 | a8740d0dbea4 |
children | acd69f84627e |
line wrap: on
line diff
--- a/dmd/TypeTypeof.d Sat Aug 28 16:14:07 2010 +0200 +++ b/dmd/TypeTypeof.d Sat Aug 28 16:19:48 2010 +0200 @@ -32,7 +32,7 @@ } } - Type syntaxCopy() + override Type syntaxCopy() { //printf("TypeTypeof.syntaxCopy() %s\n", toChars()); TypeTypeof t; @@ -43,7 +43,7 @@ return t; } - Dsymbol toDsymbol(Scope sc) + override Dsymbol toDsymbol(Scope sc) { Type t = semantic(loc, sc); if (t is this) @@ -52,7 +52,7 @@ return t.toDsymbol(sc); } - void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) + override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { if (mod != this.mod) { @@ -65,7 +65,7 @@ toCBuffer2Helper(buf, hgs); } - Type semantic(Loc loc, Scope sc) + override Type semantic(Loc loc, Scope sc) { Expression e; Type t; @@ -174,8 +174,8 @@ return tvoid; } - ulong size(Loc loc) + override ulong size(Loc loc) { assert(false); } -} \ No newline at end of file +}