Mercurial > projects > ldc
view tests/mini/with2.d @ 707:1556a9328ba1
Fixed bug with generated functions having wrong calling conventions. Thanks downs.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 15 Oct 2008 20:22:18 +0200 |
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); }