diff dmd/TypeDArray.d @ 12:832f71e6f96c

*Exp and *AssignExp arrayOp implementation added (might be a bit incomplete) Some unittest-specific functions implemented
author korDen
date Mon, 12 Apr 2010 15:13:00 +0400
parents 10317f0c89a5
children 460959608115
line wrap: on
line diff
--- a/dmd/TypeDArray.d	Wed Mar 31 16:29:36 2010 +0400
+++ b/dmd/TypeDArray.d	Mon Apr 12 15:13:00 2010 +0400
@@ -158,9 +158,10 @@
 		return e;
 	}
 	
-    int isString()
+    bool isString()
 	{
-		assert(false);
+		TY nty = next.toBasetype().ty;
+		return nty == Tchar || nty == Twchar || nty == Tdchar;
 	}
 	
     bool isZeroInit(Loc loc)