Mercurial > projects > ldc
view test/innerclass1.d @ 219:761c8352f494 trunk
[svn r235] rough port of GDC's inline assembler code, unfinished
author | ChristianK |
---|---|
date | Thu, 05 Jun 2008 19:22:37 +0200 |
parents | 7f9a0a58394b |
children | d9d5d59873d8 |
line wrap: on
line source
module innerclass1; class Outer { int i; class Inner { int func() { return i; } } } void main() { Outer o = new Outer; { o.i = 42; { auto i = o.new Inner; { int x = i.func(); assert(x == 42); } } } printf("SUCCESS\n"); }