mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1033 from ethereum/fix-using-notype
Include assert for selfType on bound functions to avoid crash
This commit is contained in:
commit
5e63e61a90
@ -2130,7 +2130,8 @@ vector<string> const FunctionType::returnParameterTypeNames(bool _addDataLocatio
|
||||
|
||||
TypePointer FunctionType::selfType() const
|
||||
{
|
||||
solAssert(bound(), "");
|
||||
solAssert(bound(), "Function is not bound.");
|
||||
solAssert(m_parameterTypes.size() > 0, "Function has no self type.");
|
||||
return m_parameterTypes.at(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user