mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #342 from chriseth/fix_crash
Fixed a crash during type checking.
This commit is contained in:
commit
aa645d1192
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user