mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixed many issues with nested structs and classes
This commit is contained in:
@@ -129,8 +129,11 @@ Expression *getRightThis(Loc loc, Scope *sc, AggregateDeclaration *ad,
|
||||
//printf("rewriting e1 to %s's this\n", f->toChars());
|
||||
n++;
|
||||
|
||||
// LDC seems dmd misses it sometimes here :/
|
||||
//f->vthis->nestedrefs = 1;
|
||||
// LDC seems dmd misses it sometimes here :/
|
||||
if (f->isMember2()) {
|
||||
f->vthis->nestedrefs.push(sc->parent->isFuncDeclaration());
|
||||
f->closureVars.push(f->vthis);
|
||||
}
|
||||
|
||||
e1 = new VarExp(loc, f->vthis);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user