Mercurial > projects > dstress
view compile/t/template_44_B.d @ 1622:d402aa53926c
Add test for bug 3092 written by Manuel K?nig
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Tue, 19 Oct 2010 19:18:23 -0300 |
parents | daef239f37cf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg@iname.com> // @date@ 2006-09-16 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=351 // @desc@ [Issue 351] New: Recursive string template doesn't work if the terminating specialisation is given first module dstress.compile.t.template_44_B; template Reverse(char[] s : "") { const char[] Reverse = ""; } template Reverse(char[] s) { const char[] Reverse = Reverse!(s[1 .. s.length]) ~ s[0]; } static assert(Reverse!("abcD") == "Dcba");