mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include assert for selfType on bound functions to avoid crash
This commit is contained in:
parent
fbe0edb32c
commit
2d9c407456
@ -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