diff dmd/TypeStruct.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents 43073c7c7769
children 8e69d041a99d
line wrap: on
line diff
--- a/dmd/TypeStruct.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/TypeStruct.d	Mon Aug 30 16:12:19 2010 +0100
@@ -181,13 +181,13 @@
 			 * (e.field0, e.field1, e.field2, ...)
 			 */
 			e = e.semantic(sc);	// do this before turning on noaccesscheck
-			Expressions exps = new Expressions;
+			auto exps = new Expressions;
 			exps.reserve(sym.fields.dim);
 			for (size_t i = 0; i < sym.fields.dim; i++)
 			{   
 				VarDeclaration v2 = cast(VarDeclaration)sym.fields[i];
 				Expression fe = new DotVarExp(e.loc, e, v2);
-				exps.push(cast(void*)fe);
+				exps.push(fe);
 			}
 			e = new TupleExp(e.loc, exps);
 			sc = sc.push();