comparison tests/mini/with2.d @ 704:43165a082535

Fixed issue with accessing a WithStatement context from inside a nested function. see mini/with2.d Renamed some LLVM uses of ::create statics to ::Create , lower case ones will be deprecated soon.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 14 Oct 2008 13:21:14 +0200
parents
children
comparison
equal deleted inserted replaced
703:06576ece1a1b 704:43165a082535
1 struct bar {
2 int bar;
3 }
4
5 void main() {
6 bar Bar;
7 with (Bar)
8 {
9 assert(Bar.bar == 0);
10 void test()
11 {
12 bar ++;
13 }
14 test();
15 }
16 assert(Bar.bar == 1);
17 }