diff options
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index f2f5e626..40f27f69 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -631,10 +631,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function) { if ( !type(*var)->canLiveOutsideStorage() && - !( - (_function.visibility() <= FunctionDefinition::Visibility::Internal) && - type(*var)->category() == Type::Category::Mapping - ) + !(_function.visibility() <= FunctionDefinition::Visibility::Internal) ) m_errorReporter.typeError(var->location(), "Type is required to live outside storage."); if (_function.visibility() >= FunctionDefinition::Visibility::Public && !(type(*var)->interfaceType(isLibraryFunction))) |