diff dmd/ShlAssignExp.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents fe941d774f4a
children 206db751bd4c
line wrap: on
line diff
--- a/dmd/ShlAssignExp.d	Sun Sep 05 15:32:22 2010 +0400
+++ b/dmd/ShlAssignExp.d	Thu Sep 09 22:51:44 2010 +0100
@@ -35,6 +35,13 @@
 		if (e)
 			return e;
 
+        if (e1.op == TOK.TOKarraylength)
+        {
+	        e = ArrayLengthExp.rewriteOpAssign(this);
+	        e = e.semantic(sc);
+	        return e;
+        }
+
 		e1 = e1.modifiableLvalue(sc, e1);
 		e1.checkScalar();
 		e1.checkNoBool();