Mercurial > projects > ddmd
diff dmd/BinExp.d @ 90:39648eb578f6
more Expressions work
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 20:27:56 +0100 |
parents | be2ab491772e |
children | 5c859d5fbe27 |
line wrap: on
line diff
--- a/dmd/BinExp.d Mon Aug 30 19:58:14 2010 +0400 +++ b/dmd/BinExp.d Mon Aug 30 20:27:56 2010 +0100 @@ -1141,13 +1141,13 @@ return EXP_CANT_INTERPRET; } // Get old element - Expression vie = cast(Expression)(ae.elements.data[elemi]); + auto vie = ae.elements[elemi]; if (vie.op != TOKstructliteral) return EXP_CANT_INTERPRET; // Work out which field needs to be changed - StructLiteralExp se = cast(StructLiteralExp)vie; - VarDeclaration vf = (cast(DotVarExp)e1).var.isVarDeclaration(); + auto se = cast(StructLiteralExp)vie; + auto vf = (cast(DotVarExp)e1).var.isVarDeclaration(); if (!vf) return EXP_CANT_INTERPRET;