mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow mappings of arrays as arguments and return values of internal functions.
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user