comparison dmd/TypeReturn.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 5a2059196104
children e28b18c23469
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
24 { 24 {
25 assert(false); 25 assert(false);
26 } 26 }
27 } 27 }
28 28
29 Type syntaxCopy() 29 override Type syntaxCopy()
30 { 30 {
31 TypeReturn t = new TypeReturn(loc); 31 TypeReturn t = new TypeReturn(loc);
32 t.syntaxCopyHelper(this); 32 t.syntaxCopyHelper(this);
33 t.mod = mod; 33 t.mod = mod;
34 return t; 34 return t;
35 } 35 }
36 36
37 Dsymbol toDsymbol(Scope sc) 37 override Dsymbol toDsymbol(Scope sc)
38 { 38 {
39 Type t = semantic(Loc(0), sc); 39 Type t = semantic(Loc(0), sc);
40 if (t is this) 40 if (t is this)
41 return null; 41 return null;
42 42
43 return t.toDsymbol(sc); 43 return t.toDsymbol(sc);
44 } 44 }
45 45
46 Type semantic(Loc loc, Scope sc) 46 override Type semantic(Loc loc, Scope sc)
47 { 47 {
48 Type t; 48 Type t;
49 if (!sc.func) 49 if (!sc.func)
50 { 50 {
51 error(loc, "typeof(return) must be inside function"); 51 error(loc, "typeof(return) must be inside function");
84 84
85 Lerr: 85 Lerr:
86 return terror; 86 return terror;
87 } 87 }
88 88
89 void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) 89 override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
90 { 90 {
91 assert(false); 91 assert(false);
92 } 92 }
93 } 93 }