Mercurial > projects > dstress
diff nocompile/t/template_52_A.d @ 1283:91479703e22e
[Issue 710] New: compiler assertion failure w/ templates
Dan <ddaglas@gmail.com>
2006-12-22
http://d.puremagic.com/issues/show_bug.cgi?id=710
author | thomask |
---|---|
date | Tue, 26 Dec 2006 14:21:23 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/template_52_A.d Tue Dec 26 14:21:23 2006 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Dan <ddaglas@gmail.com> +// @date@ 2006-12-22 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=710 +// @desc@ [Issue 710] New: compiler assertion failure w/ templates + +// __DSTRESS_ELINE__ 20 + +module dstress.nocompile.t.template_52_A; + +static int i=0; + +template NEXT(int idx){ + const NEXT = idx; +} + +ubyte HELO = NEXT!(i++);