changeset 327:43ad4a47cee3

T!().a creates a new instantiation of T that is *not* the mixin Walter <walter@digitalmars.com> 2005-03-17 mail:001c01c52b6d$e98a9410$0200a8c0@colossus
author thomask
date Fri, 18 Mar 2005 07:30:21 +0000
parents c6614ff5368b
children c09a40fe4faa
files nocompile/template_07.d run/template_07.d run/template_14.d
diffstat 3 files changed, 50 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/template_07.d	Fri Mar 18 07:30:21 2005 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	tetsuya <tetsuya_member@pathlink.com>
+// @date@	2004-13-13
+// @uri@	news:cpk4vq$1m5a$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2546
+
+
+// __DSTRESS_ERROR__ . 18
+
+module dstress.nocompile.template_07;
+
+template T(){
+	class A {
+		this() {
+			T!().a = this;
+		}
+	}
+	A a;
+}
+
+int main(){
+	mixin T!();
+	return 0;
+}
--- a/run/template_07.d	Fri Mar 18 06:51:45 2005 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-// $HeadURL$
-// $Date$
-// $Author$
-
-// @author@	tetsuya <tetsuya_member@pathlink.com>
-// @date@	2004-13-13
-// @uri@	news:cpk4vq$1m5a$1@digitaldaemon.com
-// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2546
-
-module dstress.run.template_07;
-
-template T(){
-	class A {
-		this() {
-			T!().a = this;
-		}
-	}
-	A a;
-}
-
-int main(){
-	mixin T!();
-	return 0;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/template_14.d	Fri Mar 18 07:30:21 2005 +0000
@@ -0,0 +1,23 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	tetsuya <tetsuya_member@pathlink.com>
+// @date@	2004-13-13
+// @uri@	news:cpk4vq$1m5a$1@digitaldaemon.com
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2546
+
+module dstress.run.template_14;
+
+template T(){
+	class A {
+		this() {
+			T!().a = this;
+		}
+	}
+	A a;
+}
+
+int main(){
+	return 0;
+}