Mercurial > projects > ddmd
comparison dmd/RemoveExp.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 | 6da99741178e |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
25 { | 25 { |
26 super(loc, TOKremove, RemoveExp.sizeof, e1, e2); | 26 super(loc, TOKremove, RemoveExp.sizeof, e1, e2); |
27 type = Type.tvoid; | 27 type = Type.tvoid; |
28 } | 28 } |
29 | 29 |
30 elem* toElem(IRState* irs) | 30 override elem* toElem(IRState* irs) |
31 { | 31 { |
32 elem* e; | 32 elem* e; |
33 Type tb = e1.type.toBasetype(); | 33 Type tb = e1.type.toBasetype(); |
34 assert(tb.ty == Taarray); | 34 assert(tb.ty == Taarray); |
35 TypeAArray taa = cast(TypeAArray)tb; | 35 TypeAArray taa = cast(TypeAArray)tb; |