Mercurial > projects > dstress
changeset 1177:6d34f92bff53
[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:56:59 +0000 |
parents | cc05e5d01a04 |
children | 8c922e000a6d |
files | nocompile/m/mixin_25_B.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/nocompile/m/mixin_25_B.d Fri Oct 06 06:56:59 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.nocompile.m.mixin_25_B; + +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!(30); + return 0; +} + +