Mercurial > projects > dstress
diff nocompile/default_argument_05.d @ 139:9eda85342d8a
1) templated default arguments
tetsuya <tetsuya_member@pathlink.com>
news://cnaidd$2rnr$1@digitaldaemon.com
nntp://digitalmars.com/digitalmars.D.bugs:2275
author | thomask |
---|---|
date | Mon, 15 Nov 2004 18:07:14 +0000 |
parents | |
children | a33ad7189d21 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/default_argument_05.d Mon Nov 15 18:07:14 2004 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @uri@ news://cnaidd$2rnr$1@digitaldaemon.com +// @autor@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-11-15 +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2275 + +module dstress.nocompile.default_argument_05; + +template Template(int L){ + int i; + void test(int b = Template.i) { + } +} + +int main(){ + mixin Template!(10); + return 0; +}