Mercurial > projects > ldc
view test/classes7.d @ 95:71b8fecdae38 trunk
[svn r99] Removed the ray demo. it's in test already (and not broken there)
author | lindquist |
---|---|
date | Mon, 12 Nov 2007 06:43:33 +0100 |
parents | ee302fe07296 |
children |
line wrap: on
line source
module classes7; class C { int i=0; void f() { i=42; } void g() { f(); } } void main() { scope c = new C; c.g(); assert(c.i == 42); }