diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-13 22:25:28 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-13 22:33:37 +0800 |
commit | 341128962f001eb78e5e3e3a83beadbef8d697b0 (patch) | |
tree | 92626689a3e594c679b9aecba3ca7db2c6f3363b /libsolidity | |
parent | 4ae59acc098c2ede9a2dc44e741a28df49cc59d2 (diff) | |
download | dexon-solidity-341128962f001eb78e5e3e3a83beadbef8d697b0.tar.gz dexon-solidity-341128962f001eb78e5e3e3a83beadbef8d697b0.tar.zst dexon-solidity-341128962f001eb78e5e3e3a83beadbef8d697b0.zip |
Allow mappings of arrays as arguments and return values of internal functions.
Diffstat (limited to 'libsolidity')
-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))) |