Mercurial > projects > ddmd
diff dmd/Cast.d @ 85:8e69d041a99d
Previous commit didn't compile. Fixed.
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:16:30 +0100 |
parents | be2ab491772e |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/Cast.d Mon Aug 30 16:12:19 2010 +0100 +++ b/dmd/Cast.d Mon Aug 30 16:16:30 2010 +0100 @@ -119,9 +119,8 @@ StructDeclaration sd = tb.toDsymbol(null).isStructDeclaration(); assert(sd); Expressions elements = new Expressions; - foreach (Dsymbol s; sd.fields) + foreach (VarDeclaration v; sd.fields) { - VarDeclaration v = s.isVarDeclaration(); assert(v); Expression exp = new IntegerExp(0);