aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-11 07:44:51 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-11 07:58:17 +0800
commit7c7e154a7b93d880fd173f6d633b8767f12e2469 (patch)
treed12932935933e051c1ed2a1819e16f128c849735 /libsolidity
parent34a031609e1e7c5358f0e716eeb8ef1c4d25c81a (diff)
downloaddexon-solidity-7c7e154a7b93d880fd173f6d633b8767f12e2469.tar.gz
dexon-solidity-7c7e154a7b93d880fd173f6d633b8767f12e2469.tar.zst
dexon-solidity-7c7e154a7b93d880fd173f6d633b8767f12e2469.zip
Improves error with suggestion to remove parantheses.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index f39504e1..fbfe2b72 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -556,7 +556,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."
);
}
for (size_t i = 0; i < std::min(arguments->size(), parameterTypes.size()); ++i)