changeset 1547:5e981cf4a7d5

Christian Kamm <kamm@incasoftware.de> 2007-04-24 http://d.puremagic.com/issues/show_bug.cgi?id=540
author thomask
date Mon, 23 Jul 2007 18:40:50 +0000
parents f425ddcbbcd6
children 00ac8cb240eb
files run/t/template_64_A.d run/t/template_64_B.d run/t/template_64_C.d
diffstat 3 files changed, 81 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_64_A.d	Mon Jul 23 18:40:50 2007 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Christian Kamm <kamm@incasoftware.de>
+// @date@	2007-04-24
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=540
+
+
+module dstress.run.t.template_64_A;
+
+template A(){
+	static T foo(T)(T t){
+		return t + 1;
+	}
+}
+
+struct Bar{
+	mixin A!() a;
+}
+
+int main(){
+	if(2 != A!().foo(1)){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_64_B.d	Mon Jul 23 18:40:50 2007 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Christian Kamm <kamm@incasoftware.de>
+// @date@	2007-04-24
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=540
+
+
+module dstress.run.t.template_64_B;
+
+template A(){
+	static T foo(T)(T t){
+		return t + 1;
+	}
+}
+
+struct Bar{
+	mixin A!() a;
+}
+
+int main(){
+	if(2 != Bar.a.foo!(int)(1)){
+		assert(0);
+	}
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_64_C.d	Mon Jul 23 18:40:50 2007 +0000
@@ -0,0 +1,27 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Christian Kamm <kamm@incasoftware.de>
+// @date@	2007-04-24
+// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=540
+
+
+module dstress.run.t.template_64_C;
+
+template A(){
+	static T foo(T)(T t){
+		return t + 1;
+	}
+}
+
+struct Bar{
+	mixin A!() a;
+}
+
+int main(){
+	if(2 != Bar.a.foo(1)){
+		assert(0);
+	}
+	return 0;
+}