Mercurial > projects > ddmd
diff dmd/FuncDeclaration.d @ 94:3a0b150c9841
Objects -> Vector!Object iteration 1
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 23:00:34 +0100 |
parents | df6d0f967680 |
children | 12c0c84d13fd |
line wrap: on
line diff
--- a/dmd/FuncDeclaration.d Mon Aug 30 22:50:30 2010 +0200 +++ b/dmd/FuncDeclaration.d Mon Aug 30 23:00:34 2010 +0100 @@ -1129,10 +1129,10 @@ VarDeclaration v = sc2.search(Loc(0), narg.ident, null).isVarDeclaration(); assert(v); Expression e = new VarExp(v.loc, v); - exps.data[j] = cast(void*)e; + exps[j] = e; } assert(arg.ident); - TupleDeclaration v = new TupleDeclaration(loc, arg.ident, exps); + auto v = new TupleDeclaration(loc, arg.ident, exps); //printf("declaring tuple %s\n", v.toChars()); v.isexp = 1; if (!sc2.insert(v))