diff dmd/VarDeclaration.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 23280d154c5b
children 12c0c84d13fd
line wrap: on
line diff
--- a/dmd/VarDeclaration.d	Mon Aug 30 22:50:30 2010 +0200
+++ b/dmd/VarDeclaration.d	Mon Aug 30 23:00:34 2010 +0100
@@ -275,10 +275,10 @@
 				sc.scopesym.members.push(v);
 			}
 
-			Expression e = new DsymbolExp(loc, v);
-			exps.data[i] = cast(void*)e;
+			auto e = new DsymbolExp(loc, v);
+			exps[i] = e;
 		}
-		TupleDeclaration v2 = new TupleDeclaration(loc, ident, exps);
+		auto v2 = new TupleDeclaration(loc, ident, exps);
 		v2.isexp = 1;
 		aliassym = v2;
 		return;