Mercurial > projects > dstress
view run/default_argument_06.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | e77e4444c170 |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ tetsuya <tetsuya_member@pathlink.com> // @date@ 2004-11-15 // @uri@ news:cnaidd$2rnr$1@digitaldaemon.com // @url@ nntp://digitalmars.com/digitalmars.D.bugs/2275 module dstress.run.default_argument_06; template Template(int L){ int i=L; int test(int b = i) { return b; } } int main(){ mixin Template!(10); assert(test()==10); return 0; }