mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
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.
This commit is contained in:
17
tests/mini/with2.d
Normal file
17
tests/mini/with2.d
Normal file
@@ -0,0 +1,17 @@
|
||||
struct bar {
|
||||
int bar;
|
||||
}
|
||||
|
||||
void main() {
|
||||
bar Bar;
|
||||
with (Bar)
|
||||
{
|
||||
assert(Bar.bar == 0);
|
||||
void test()
|
||||
{
|
||||
bar ++;
|
||||
}
|
||||
test();
|
||||
}
|
||||
assert(Bar.bar == 1);
|
||||
}
|
||||
Reference in New Issue
Block a user