diff options
author | chriseth <c@ethdev.com> | 2015-06-10 21:36:30 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-10 21:36:30 +0800 |
commit | e224a028266b7157f0ebae38a392718595ee6453 (patch) | |
tree | c35795c838314da94994776c9e2bfbab1df46520 /AST.cpp | |
parent | 6ad90719d8f34e093a1c3e57b60b79b31a0332f3 (diff) | |
parent | 02d57169442d9f5ccf6536341fba1bfe0431473a (diff) | |
download | dexon-solidity-e224a028266b7157f0ebae38a392718595ee6453.tar.gz dexon-solidity-e224a028266b7157f0ebae38a392718595ee6453.tar.zst dexon-solidity-e224a028266b7157f0ebae38a392718595ee6453.zip |
Merge pull request #2122 from chriseth/sol_memoryArrays2
Use dynamic memory.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -469,9 +469,6 @@ void FunctionDefinition::checkTypeRequirements() { if (!var->getType()->canLiveOutsideStorage()) BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage.")); - // todo delete when will be implemented arrays as parameter type in internal functions - if (getVisibility() == Visibility::Public && var->getType()->getCategory() == Type::Category::Array) - BOOST_THROW_EXCEPTION(var->createTypeError("Arrays only implemented for external functions.")); if (getVisibility() >= Visibility::Public && !(var->getType()->externalType())) BOOST_THROW_EXCEPTION(var->createTypeError("Internal type is not allowed for public and external functions.")); } |