aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-05 23:32:13 +0800
committerchriseth <c@ethdev.com>2015-06-09 06:27:56 +0800
commit35ec81971acc31f16253bd1702fb81adbee85f48 (patch)
tree3e8e3b1079a01ab03ed1b2d86d203f3bfe56f435 /AST.cpp
parentc2a9419e495e931a825e8146aec49ffc34e44954 (diff)
downloaddexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.tar.gz
dexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.tar.zst
dexon-solidity-35ec81971acc31f16253bd1702fb81adbee85f48.zip
Dynamic memory.
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index 4c7168af..7fd1425e 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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."));
}