mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-17 19:07:05 +02: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
|
if (!f->originalType && f->scope) // semantic not yet run
|
||||||
f->semantic(f->scope);
|
f->semantic(f->scope);
|
||||||
|
if (f->isUnitTestDeclaration())
|
||||||
|
{
|
||||||
|
error("cannot call unittest function %s", toChars());
|
||||||
|
return new ErrorExp();
|
||||||
|
}
|
||||||
if (!f->type->deco)
|
if (!f->type->deco)
|
||||||
{
|
{
|
||||||
error("forward reference to %s", toChars());
|
error("forward reference to %s", toChars());
|
||||||
|
|||||||
Reference in New Issue
Block a user