diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-28 00:07:32 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-04-01 21:21:17 +0800 |
commit | 37a0234c4a673f130f28a3241cb72589b0aa1f47 (patch) | |
tree | b3e89c7c2d3460ea4fa6807aa4e9c6f79ac3829c /AST.cpp | |
parent | 4227be6e12a4b40b729457eadce681641dd738df (diff) | |
download | dexon-solidity-37a0234c4a673f130f28a3241cb72589b0aa1f47.tar.gz dexon-solidity-37a0234c4a673f130f28a3241cb72589b0aa1f47.tar.zst dexon-solidity-37a0234c4a673f130f28a3241cb72589b0aa1f47.zip |
style fixes
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -337,7 +337,7 @@ void FunctionDefinition::checkTypeRequirements() { if (!var->getType()->canLiveOutsideStorage()) BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage.")); - if (!(var->getType()->externalType()) && getVisibility() >= Visibility::Public) + if (getVisibility() >= Visibility::Public && !(var->getType()->externalType())) BOOST_THROW_EXCEPTION(var->createTypeError("Internal type is not allowed for function with external visibility")); } for (ASTPointer<ModifierInvocation> const& modifier: m_functionModifiers) |