changeset 1181:1b8d07c28573

[Issue 398] New: No way to abort compilation in a doubly recursive mixin Don Clugston <clugdbug@yahoo.com.au> 2006-10-04 news:bug-398-3@http.d.puremagic.com/issues/
author thomask
date Fri, 06 Oct 2006 06:57:24 +0000
parents 6edbee11e5be
children 6e5d377573e1
files run/m/mixin_25_A.d
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/m/mixin_25_A.d	Fri Oct 06 06:57:24 2006 +0000
@@ -0,0 +1,26 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Don Clugston <clugdbug@yahoo.com.au>
+// @date@	2006-10-04
+// @uri@	news:bug-398-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 398] New: No way to abort compilation in a doubly recursive mixin
+
+module dstress.run.m.mixin_25_A;
+
+template rubbish(int w) {
+	static if (w<=0) {
+		int val = 2;
+	} else {
+		mixin rubbish!(w-1) left;
+		mixin rubbish!(w-1) right;
+	}
+}
+
+int main(){
+	mixin rubbish!(4);
+	return 0;
+}
+
+