mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fix unresolved symbol in the runnable/mixin2 test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ================================================================== */
|
||||
|
||||
Reference in New Issue
Block a user