mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-20 13:43:13 +01:00
Treat ConditionalDeclarations correctly in DtoDeclarationExp.
Fixes #332.
This commit is contained in:
@@ -979,10 +979,12 @@ DValue* DtoDeclarationExp(Dsymbol* declaration)
|
||||
else if (AttribDeclaration* a = declaration->isAttribDeclaration())
|
||||
{
|
||||
Logger::println("AttribDeclaration");
|
||||
if (a->decl)
|
||||
for (int i=0; i < a->decl->dim; ++i)
|
||||
// choose the right set in case this is a conditional declaration
|
||||
Array *d = a->include(NULL, NULL);
|
||||
if (d)
|
||||
for (int i=0; i < d->dim; ++i)
|
||||
{
|
||||
DtoDeclarationExp((Dsymbol*)a->decl->data[i]);
|
||||
DtoDeclarationExp((Dsymbol*)d->data[i]);
|
||||
}
|
||||
}
|
||||
// mixin declaration
|
||||
|
||||
Reference in New Issue
Block a user