Mercurial > projects > ldc
view tests/mini/with2.d @ 862:e8337278f49b
temporary fix for runtime buildscript to copy ldc's imports to tango
author | elrood |
---|---|
date | Thu, 18 Dec 2008 19:21:44 +0100 |
parents | 43165a082535 |
children |
line wrap: on
line source
struct bar { int bar; } void main() { bar Bar; with (Bar) { assert(Bar.bar == 0); void test() { bar ++; } test(); } assert(Bar.bar == 1); }