Replace superFunction by baseFunctions in AST annotations and JSON AST.

This commit is contained in:
Daniel Kirchner
2019-12-05 03:33:32 +01:00
parent 6c0660ac66
commit 8b35918ad0
5 changed files with 7 additions and 7 deletions
@@ -290,8 +290,7 @@ bool ContractLevelChecker::checkFunctionOverride(FunctionDefinition const& _func
success = false;
}
if (!_function.annotation().superFunction)
_function.annotation().superFunction = &_super;
_function.annotation().baseFunctions.emplace(&_super);
if (_function.visibility() != _super.visibility())
{
+1 -1
View File
@@ -171,7 +171,7 @@ void ViewPureChecker::endVisit(FunctionDefinition const& _funDef)
!_funDef.isConstructor() &&
!_funDef.isFallback() &&
!_funDef.isReceive() &&
!_funDef.annotation().superFunction
!_funDef.overrides()
)
m_errorReporter.warning(
_funDef.location(),