changeset 1075:069266d1a5f8

<h3r3tic@mat.uni.torun.pl> 2006-06-20 news:bug-213-3@http.d.puremagic.com/issues/
author thomask
date Fri, 07 Jul 2006 16:55:25 +0000
parents 606a9d4edc0e
children a371b0916f36
files run/t/template_40_A.d run/t/template_40_B.d run/t/template_40_C.d
diffstat 3 files changed, 88 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_40_A.d	Fri Jul 07 16:55:25 2006 +0000
@@ -0,0 +1,28 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<h3r3tic@mat.uni.torun.pl>
+// @date@	2006-06-20
+// @uri@	news:bug-213-3@http.d.puremagic.com/issues/
+
+module dstress.run.t.template_40_A;
+
+template Outer(){
+        template Inner() {
+                int Inner;
+        }
+        
+	int dummy;
+}
+
+struct Bar {
+        mixin Outer!();
+}
+
+int main(){
+	typeof(Bar.Inner!()) x;
+	typeof(Bar.dummy) y;
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_40_B.d	Fri Jul 07 16:55:25 2006 +0000
@@ -0,0 +1,32 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<h3r3tic@mat.uni.torun.pl>
+// @date@	2006-06-20
+// @uri@	news:bug-213-3@http.d.puremagic.com/issues/
+
+module dstress.run.t.template_40_B;
+
+template Outer(){
+        template Inner() {
+                int Inner;
+        }
+        
+	int dummy;
+}
+
+struct Bar {
+        mixin Outer!();
+}
+
+int main(){
+	if(! is(Bar.Inner!())){
+		assert(0);
+	}
+	if(! is(Bar.dummy)){
+		assert(0);
+	}
+
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/t/template_40_C.d	Fri Jul 07 16:55:25 2006 +0000
@@ -0,0 +1,28 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	<h3r3tic@mat.uni.torun.pl>
+// @date@	2006-06-20
+// @uri@	news:bug-213-3@http.d.puremagic.com/issues/
+
+module dstress.run.t.template_40_C;
+
+template Outer(){
+        template Inner() {
+                int foo;
+        }
+        
+	int dummy;
+}
+
+struct Bar {
+        mixin Outer!();
+}
+
+int main(){
+	typeof(Bar.Inner!().foo) x;
+	typeof(Bar.dummy) y;
+
+	return 0;
+}