diff dmd/ArrayExp.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 e28b18c23469
line wrap: on
line diff
--- a/dmd/ArrayExp.d	Mon Aug 30 19:58:14 2010 +0400
+++ b/dmd/ArrayExp.d	Mon Aug 30 20:27:56 2010 +0100
@@ -51,7 +51,7 @@
 			// Convert to IndexExp
 			if (arguments.dim != 1)
 				error("only one index allowed to index %s", t1.toChars());
-			e = new IndexExp(loc, e1, cast(Expression)arguments.data[0]);
+			e = new IndexExp(loc, e1, arguments[0]);
 			return e.semantic(sc);
 		}