Mercurial > projects > dstress
changeset 488:9dfc177c0a1f
template / private member
Mike Parker <aldacron71@yahoo.com>
2005-04-25
news:d4i19u$12td$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 27 Apr 2005 05:49:25 +0000 |
parents | 15d9857b07bd |
children | 4cbdf8397c82 |
files | run/package_03.d run/private_07.d |
diffstat | 2 files changed, 48 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/package_03.d Wed Apr 27 05:49:25 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Mike Parker <aldacron71@yahoo.com> +// @date@ 2005-04-25 +// @uri@ news:d4i19u$12td$1@digitaldaemon.com + +module dstress.run.package_03; + +template T(){ + package int x; +} + +class MyClass{ + mixin T; +} + +int main(){ + MyClass c=new MyClass; + c.x = 1; + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/private_07.d Wed Apr 27 05:49:25 2005 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Mike Parker <aldacron71@yahoo.com> +// @date@ 2005-04-25 +// @uri@ news:d4i19u$12td$1@digitaldaemon.com + +module dstress.run.private_07; + +template T(){ + private int x; +} + +class MyClass{ + mixin T; +} + +int main(){ + MyClass c=new MyClass; + c.x = 1; + return 0; +} +