Fixed a crash during type checking.

This commit is contained in:
chriseth 2016-01-08 15:20:20 +01:00
parent b158e48c1a
commit d3c8847726

View File

@ -495,7 +495,10 @@ void TypeChecker::visitManually(
break;
}
if (!parameters)
{
typeError(_modifier.location(), "Referenced declaration is neither modifier nor base class.");
return;
}
if (parameters->size() != arguments.size())
typeError(
_modifier.location(),