Merge pull request #342 from chriseth/fix_crash

Fixed a crash during type checking.
This commit is contained in:
chriseth 2016-01-11 08:25:52 +01:00
commit aa645d1192

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(),