Mercurial > projects > dstress
view run/n/nested_class_02_A.d @ 1091:9dcac8d4e97f
post DMD-0.163 review
author | thomask |
---|---|
date | Fri, 21 Jul 2006 11:15:26 +0000 |
parents | 5e4bd0277f63 |
children |
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; }