Mercurial > projects > dstress
view run/n/nested_class_02_E.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_E; void func(){ static int m; static class Inner{ int test(){ return m; } } Inner inner = new Inner(); assert(inner.test()==m); } int main(){ func(); return 0; }