aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsolidity/analysis/StaticAnalyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp
index c81a46e7..46477e1e 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<ContractType const*>(_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;
}