mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Merged DMD commit 1a61d2c8de2fe913bc6cbc45a5bce8f86a88d1aa:
bugzilla 5182 ICE(expression.c): calling unittest from a function
This commit is contained in:
@@ -2195,6 +2195,11 @@ Lagain:
|
||||
|
||||
if (!f->originalType && f->scope) // semantic not yet run
|
||||
f->semantic(f->scope);
|
||||
if (f->isUnitTestDeclaration())
|
||||
{
|
||||
error("cannot call unittest function %s", toChars());
|
||||
return new ErrorExp();
|
||||
}
|
||||
if (!f->type->deco)
|
||||
{
|
||||
error("forward reference to %s", toChars());
|
||||
|
||||
Reference in New Issue
Block a user