diff options
author | chriseth <c@ethdev.com> | 2015-06-05 23:32:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-09 06:27:56 +0800 |
commit | 35ec81971acc31f16253bd1702fb81adbee85f48 (patch) | |
tree | 3e8e3b1079a01ab03ed1b2d86d203f3bfe56f435 /AST.cpp | |
parent | c2a9419e495e931a825e8146aec49ffc34e44954 (diff) | |
download | dexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.tar.gz dexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.tar.zst dexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.zip |
Dynamic memory.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -462,9 +462,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.")); } |