diff options
author | Gav Wood <i@gavwood.com> | 2015-02-04 04:25:08 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-02-04 04:25:08 +0800 |
commit | 2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276 (patch) | |
tree | 5a69a85a19d619453fa4283a78a47e64051ed0c9 /AST.cpp | |
parent | 04164b612c61ea2ea5c18f56600f95f03ded7235 (diff) | |
download | dexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.tar.gz dexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.tar.zst dexon-solidity-2ff4a80b6266a6bcd22ef6cbb654f90fc84f9276.zip |
Fixes for named-args.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -513,7 +513,7 @@ void FunctionCall::checkTypeRequirements() for (size_t i = 0; i < m_names.size(); i++) { bool found = false; for (size_t j = 0; j < parameterNames.size(); j++) { - if (parameterNames[j] == m_names[i]) { + if (parameterNames[j] == *m_names[i]) { // check type convertible if (!m_arguments[i]->getType()->isImplicitlyConvertibleTo(*parameterTypes[j])) BOOST_THROW_EXCEPTION(createTypeError("Invalid type for argument in function call.")); |