aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-10 21:36:30 +0800
committerchriseth <c@ethdev.com>2015-06-10 21:36:30 +0800
commite224a028266b7157f0ebae38a392718595ee6453 (patch)
treec35795c838314da94994776c9e2bfbab1df46520 /AST.cpp
parent6ad90719d8f34e093a1c3e57b60b79b31a0332f3 (diff)
parent02d57169442d9f5ccf6536341fba1bfe0431473a (diff)
downloaddexon-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.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index acb7b50c..5be23b7c 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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."));
}