Files
ldc/tests/mini/with2.d
Tomas Lindquist Olsen 180487b614 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.
2008-10-14 13:21:14 +02:00

18 lines
217 B
D

struct bar {
int bar;
}
void main() {
bar Bar;
with (Bar)
{
assert(Bar.bar == 0);
void test()
{
bar ++;
}
test();
}
assert(Bar.bar == 1);
}