Mercurial > projects > dstress
changeset 404:6b68cdea884d
private member of templated classes
Kevin VR <azra@pandora.be>
2005-04-07
news:d31ndi$amo$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 08 Apr 2005 05:45:41 +0000 |
parents | 180a3356c16a |
children | 7df87732c662 |
files | reporter.txt run/private_04.d |
diffstat | 2 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/reporter.txt Fri Apr 08 05:33:27 2005 +0000 +++ b/reporter.txt Fri Apr 08 05:45:41 2005 +0000 @@ -31,6 +31,7 @@ John Reimer <brk_6502@NO_SPA_M.yahoo.com> k2 Kevin Bealer +Kevin VR <azra@pandora.be> kinghajj Knud Sörensen <knud@NetRunner.all-technology.com> Kris <someidiot@earthlink.dot.dot.dot.net>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/private_04.d Fri Apr 08 05:45:41 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kevin VR <azra@pandora.be> +// @date@ 2005-04-07 +// @uri@ news:d31ndi$amo$1@digitaldaemon.com + +module dstress.run.private_04; + +class Bar(Type){ + this(){ + } + + private int doSomething(){ + return 2; + } +} + +int main(){ + Bar!(int) b = new Bar!(int)(); + assert(2==b.doSomething()); + return 0; +}