diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-31 17:07:10 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-04-08 21:56:35 +0800 |
commit | df3ce3ad8f365ab7842823f4694490ad80a651c5 (patch) | |
tree | 45473f8b8cb807269abeba64199124bd7e58b0bc /Types.cpp | |
parent | 7eec25b6eb07f1549725884221402a6e692b46e1 (diff) | |
download | dexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.tar.gz dexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.tar.zst dexon-solidity-df3ce3ad8f365ab7842823f4694490ad80a651c5.zip |
some more tests
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1002,17 +1002,17 @@ FunctionType::FunctionType(VariableDeclaration const& _varDecl): retParamNames.push_back(member.first); retParams.push_back(member.second); } - } else - if (auto arrayType = dynamic_cast<ArrayType const*>(returnType.get())) - { - params.push_back(make_shared<IntegerType>(256)); - paramNames.push_back(""); - returnType = arrayType->getBaseType(); - } else - { - retParams.push_back(returnType); - retParamNames.push_back(""); - } + } else if (auto arrayType = dynamic_cast<ArrayType const*>(returnType.get())) + { + params.push_back(make_shared<IntegerType>(256)); + paramNames.push_back(""); + returnType = arrayType->getBaseType(); + } + else + { + retParams.push_back(returnType); + retParamNames.push_back(""); + } swap(params, m_parameterTypes); swap(paramNames, m_parameterNames); |