Skip to content

Commit

Permalink
Update OverrideChecker.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kilavvy authored and cameel committed Jan 23, 2025
1 parent 0caf772 commit 088651e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsolidity/analysis/OverrideChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
std::string callableName = _baseCallables.begin()->astNodeName();
if (_baseCallables.begin()->isVariable())
callableName = "function";
std::string distinguishigProperty = _baseCallables.begin()->distinguishingProperty();
std::string distinguishingProperty = _baseCallables.begin()->distinguishingProperty();

bool foundVariable = false;
for (auto const& base: _baseCallables)
Expand All @@ -811,7 +811,7 @@ void OverrideChecker::checkAmbiguousOverridesInternal(std::set<OverrideProxy> _b
std::string message =
"Derived contract must override " + callableName + " \"" +
_baseCallables.begin()->name() +
"\". Two or more base classes define " + callableName + " with same " + distinguishigProperty + ".";
"\". Two or more base classes define " + callableName + " with same " + distinguishingProperty + ".";

if (foundVariable)
message +=
Expand Down

0 comments on commit 088651e

Please sign in to comment.