Fix unresolved symbol in the runnable/mixin2 test

This commit is contained in:
Alexey Prokhin
2011-07-19 10:14:14 +04:00
parent 596aad3738
commit bb2676dbe3

View File

@@ -205,7 +205,16 @@ void TemplateInstance::codegen(Ir* p)
void TemplateMixin::codegen(Ir* p)
{
TemplateInstance::codegen(p);
if (!errors && members)
{
for (int i = 0; i < members->dim; i++)
{
Dsymbol *s = (Dsymbol *)members->data[i];
if (s->isVarDeclaration())
continue;
s->codegen(p);
}
}
}
/* ================================================================== */