Mercurial > projects > dstress
view nocompile/t/template_48_A.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | 1ee9a0dd42d9 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ rm <roel.mathys@gmail.com> // @date@ 2006-10-04 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=D.gnu&artnum=2134 // @desc@ infinite loop in gdc-0.19 with tempaltes // __DSTRESS_ELINE__ 19 module dstress.nocompile.t.template_48_A; template TFoo(int v : 1){ const int TFoo = 1; } template TFoo(int v){ const int TFoo = v * TFoo!(v-1).TFoo; } static assert(TFoo!(4) == 24);