changeset 668:f550e7d7e34b

zwang <nehzgnaw@gmail.com> 2005-09-17 news:dggiua$2m7m$1@digitaldaemon.com
author thomask
date Sat, 17 Sep 2005 12:36:16 +0000
parents d7407a507f2d
children 6b2e470699a0
files nocompile/b/bug_e2ir_2452_A.d nocompile/b/bug_e2ir_2452_C.d nocompile/b/bug_e2ir_2452_D.d run/b/bug_e2ir_2452_B.d
diffstat 4 files changed, 82 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/b/bug_e2ir_2452_A.d	Sat Sep 17 12:36:16 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	zwang <nehzgnaw@gmail.com>
+// @date@	2005-09-17
+// @uri@	news:dggiua$2m7m$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.b.bug_e2ir_2452_A;
+
+class C{
+	C[1] c;
+
+	this(){
+		c ~= this;
+	}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/b/bug_e2ir_2452_C.d	Sat Sep 17 12:36:16 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	zwang <nehzgnaw@gmail.com>
+// @date@	2005-09-17
+// @uri@	news:dggiua$2m7m$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.b.bug_e2ir_2452_C;
+
+C[1] c;
+
+class C{
+	this(){
+		c ~= this;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/b/bug_e2ir_2452_D.d	Sat Sep 17 12:36:16 2005 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	zwang <nehzgnaw@gmail.com>
+// @date@	2005-09-17
+// @uri@	news:dggiua$2m7m$1@digitaldaemon.com
+
+// __DSTRESS_ELINE__ 17
+
+module dstress.nocompile.b.bug_e2ir_2452_D;
+
+class C{
+	static C[1] c;
+	
+	this(){
+		c ~= this;
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/b/bug_e2ir_2452_B.d	Sat Sep 17 12:36:16 2005 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	zwang <nehzgnaw@gmail.com>
+// @date@	2005-09-17
+// @uri@	news:dggiua$2m7m$1@digitaldaemon.com
+
+module dstress.run.b.bug_e2ir_2452_B;
+
+class C{
+	C[] c;
+
+	this(){
+		c ~= this;
+	}
+}
+
+int main(){
+	C c = new C();
+	assert(c.c.length==1);
+	assert(c.c[0] is c);
+	
+	return 0;
+}
\ No newline at end of file