# HG changeset patch # User thomask # Date 1116055789 0 # Node ID ee3ad66f8f7b355a276b542087468e4f211b0c5f # Parent f046e2368dc8322ae97bb1beb061454f3b4d50e1 import / static class members David Friedman 2005-05-13 news:d61bou$1ghv$1@digitaldaemon.com diff -r f046e2368dc8 -r ee3ad66f8f7b addon/static_31_Z.d --- /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; + } +} diff -r f046e2368dc8 -r ee3ad66f8f7b run/s/static_31.d --- /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 +// @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; +}