mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-26 10:53:51 +01:00
Get rid of 'static function cannot access nested' error. It is caught again later.
This commit is contained in:
@@ -406,11 +406,6 @@ LLValue* DtoNestedContext(Loc loc, Dsymbol* sym)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (irfunc->decl->isStatic())
|
||||
{
|
||||
irfunc->decl->error("is static and cannot access nested %s %s", sym->kind(), sym->toChars());
|
||||
fatal();
|
||||
}
|
||||
return getNullPtr(getVoidPtrType());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user