diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index c81a46e7e..46477e1e0 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -138,7 +138,7 @@ bool StaticAnalyzer::visit(MemberAccess const& _memberAccess) if (m_constructor && m_currentContract) if (ContractType const* type = dynamic_cast(_memberAccess.expression().annotation().type.get())) if (type->contractDefinition() == *m_currentContract) - warning(_memberAccess.location(), "\"this\" used in constructor."); + m_errorReporter.warning(_memberAccess.location(), "\"this\" used in constructor."); return true; }