Mercurial > projects > ldc
view tests/mini/with2.d @ 760:6f33b427bfd1
Seems like hg ignores .di files, so I missed a bunch of stuff. complete druntime should be there now :)
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 00:19:18 +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); }