Mercurial > projects > dstress
view run/t/template_32_B.d @ 1609:3c803614a8fb
Add a few missing abstracts.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 26 Apr 2009 13:38:23 +0200 |
parents | 902d2c168029 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Dave <Dave_member@pathlink.com> // @date@ 2006-03-18 // @uri@ news:dvgq34$22hv$1@digitaldaemon.com // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=487 module dstress.run.t.template_32_B; template sum(real x){ static if (x <= 1.0L){ const real sum = x; }else{ const real sum = x + sum!(x - 1.0L); } } int main(){ real x = sum!(2.0L); if(x != 3.0L){ assert(0); } return 0; }