aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-10 18:05:41 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-11 07:58:17 +0800
commit34a031609e1e7c5358f0e716eeb8ef1c4d25c81a (patch)
tree13d57947ee1bf5b70d3a2587b34aaf0b6f4c0b23 /libsolidity/analysis
parent038554abe0d484fdb733df69210f1efae5d46bef (diff)
downloaddexon-solidity-34a031609e1e7c5358f0e716eeb8ef1c4d25c81a.tar.gz
dexon-solidity-34a031609e1e7c5358f0e716eeb8ef1c4d25c81a.tar.zst
dexon-solidity-34a031609e1e7c5358f0e716eeb8ef1c4d25c81a.zip
Updates Changelog, syntax test and simplifies type checker.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 1678e5a5..f39504e1 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -558,10 +558,8 @@ void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)
toString(parameterTypes.size()) +
"."
);
- if (arguments->size() != 0)
- return;
}
- for (size_t i = 0; i < arguments->size(); ++i)
+ for (size_t i = 0; i < std::min(arguments->size(), parameterTypes.size()); ++i)
if (!type(*(*arguments)[i])->isImplicitlyConvertibleTo(*parameterTypes[i]))
m_errorReporter.typeError(
(*arguments)[i]->location(),