Mercurial > projects > dstress
view run/n/nested_class_01_E.d @ 1597:8b9d4d2f925a
Fix typos in complex tests. See D bug 614.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 09 Sep 2008 16:53:58 +0200 |
parents | 5e4bd0277f63 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.n.nested_class_01_E; class Outer{ static int m=2; static class Inner{ int test(){ return m; } } Inner inner; this(){ inner = new Inner(); } } int main(){ Outer o = new Outer(); assert(o.m == o.inner.test()); return 0; }