Mercurial > projects > dstress
changeset 541:ee3ad66f8f7b
import / static class members
David Friedman <d3rdclsmail_a_@_t_earthlink_d_._t_net>
2005-05-13
news:d61bou$1ghv$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 14 May 2005 07:29:49 +0000 |
parents | f046e2368dc8 |
children | c4c408b85f15 |
files | addon/static_31_Z.d run/s/static_31.d |
diffstat | 2 files changed, 28 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/addon/static_31_Z.d Sat May 14 07:29:49 2005 +0000 @@ -0,0 +1,11 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module addon.static_31_Z; + +class MyClass{ + static int test(int i){ + return i+1; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_31.d Sat May 14 07:29:49 2005 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David Friedman <d3rdclsmail_a_@_t_earthlink_d_._t_net> +// @date@ 2005-05-13 +// @uri@ news:d61bou$1ghv$1@digitaldaemon.com + +// __DSTRESS_DFLAGS__ addon/static_31_Z.d + +module dstress.run.s.static_31; +import addon.static_31_Z; + +int main(){ + assert(MyClass.test(1)==2); + return 0; +}