Include assert for selfType on bound functions to avoid crash

This commit is contained in:
Alex Beregszaszi 2016-09-06 22:10:06 +01:00
parent fbe0edb32c
commit 2d9c407456

View File

@ -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);
}