mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Only suggest removing parentheses from a construction call if they're empty
This commit is contained in:
@@ -365,7 +365,7 @@ void TypeChecker::endVisit(InheritanceSpecifier const& _inheritance)
|
||||
toString(arguments->size()) +
|
||||
" arguments given but expected " +
|
||||
toString(parameterTypes.size()) +
|
||||
". Remove parentheses if you do not want to provide arguments here."
|
||||
(arguments->size() == 0 ? ". Remove parentheses if you do not want to provide arguments here." : "")
|
||||
);
|
||||
}
|
||||
for (size_t i = 0; i < std::min(arguments->size(), parameterTypes.size()); ++i)
|
||||
|
||||
Reference in New Issue
Block a user