Mercurial > projects > dstress
view run/default_argument_06.d @ 564:e77e4444c170
partial metadata fix
author | thomask |
---|---|
date | Thu, 02 Jun 2005 15:42:31 +0000 |
parents | a33ad7189d21 |
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; }