Mercurial > projects > dstress
annotate run/package_03.d @ 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 | |
children | b8c0195059d9 |
rev | line source |
---|---|
488 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Mike Parker <aldacron71@yahoo.com> | |
6 // @date@ 2005-04-25 | |
7 // @uri@ news:d4i19u$12td$1@digitaldaemon.com | |
8 | |
9 module dstress.run.package_03; | |
10 | |
11 template T(){ | |
12 package int x; | |
13 } | |
14 | |
15 class MyClass{ | |
16 mixin T; | |
17 } | |
18 | |
19 int main(){ | |
20 MyClass c=new MyClass; | |
21 c.x = 1; | |
22 return 0; | |
23 } | |
24 |