diff options
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index a0c1626d..4b5f12ce 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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); } |