Mercurial > projects > dstress
diff compile/o/opCmp_09_A.d @ 1312:eac3a538961a
[Issue 772] Bogus error using relation operator as static if expression within template
Chris Sauls <ibisbasenji@gmail.com>
2006-12-30
http://d.puremagic.com/issues/show_bug.cgi?id=772
author | thomask |
---|---|
date | Sun, 31 Dec 2006 14:28:27 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opCmp_09_A.d Sun Dec 31 14:28:27 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Chris Sauls <ibisbasenji@gmail.com> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=772 +// @desc@ [Issue 772] Bogus error using relation operator as static if expression within template + +module dstress.compile.o.opCmp_09_A; + +template Templ (ulong n) { + static if (n > 10_LU) { + static assert(0); + } +} + +mixin Templ!(1_LU); +