mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-03 04:50:05 +02:00
Fix nested references to 'ref' foreach variables.
These "walk around" the array being iterated over, so they're a bit trickier than other variables to get right.
This commit is contained in:
@@ -1 +1,8 @@
|
||||
void foo() { void delegate()[] bar; try {} finally { foreach (dg; bar) dg(); } }
|
||||
void foo() {
|
||||
void delegate()[] bar;
|
||||
try {
|
||||
} finally {
|
||||
foreach (dg; bar)
|
||||
dg();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user