Mercurial > projects > dstress
view run/n/nested_class_02_A.d @ 580:5e4bd0277f63
added basic nested class tests
author | thomask |
---|---|
date | Fri, 17 Jun 2005 19:42:25 +0000 |
parents | |
children | 9dcac8d4e97f |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.n.nested_class_02_A; void func(){ int m; class Inner{ int test(){ return m; } } Inner inner = new Inner(); assert(inner.test()==0); m=2; assert(inner.test()==2); } int main(){ func(); return 0; }