diff run/o/opCatAssign_20_B.d @ 1282:75288b41b6c7

[Issue 720] New: bug in array literal parsing with append Kevin Bealer <kevinbealer@gmail.com> 2006-12-22 http://d.puremagic.com/issues/show_bug.cgi?id=720
author thomask
date Tue, 26 Dec 2006 14:21:14 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/o/opCatAssign_20_B.d	Tue Dec 26 14:21:14 2006 +0000
@@ -0,0 +1,30 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Kevin Bealer <kevinbealer@gmail.com>
+// @date@	2006-12-22
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=720
+// @desc@	[Issue 720] New: bug in array literal parsing with append
+
+module dstress.run.o.opCatAssign_20_B;
+
+int main(){
+	int[2][] pos;
+	pos ~= [7, 13];
+
+	if(pos.length != 1){
+		assert(0);
+	}
+	if(pos[0].length != 2){
+		assert(0);
+	}
+	if(pos[0][0] != 7){
+		assert(0);
+	}
+	if(pos[0][1] != 13){
+		assert(0);
+	}
+
+	return 0;
+}