mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Migrate over to ErrorReporter
This commit is contained in:
parent
e506129aee
commit
a2a759f792
@ -138,7 +138,7 @@ bool StaticAnalyzer::visit(MemberAccess const& _memberAccess)
|
|||||||
if (m_constructor && m_currentContract)
|
if (m_constructor && m_currentContract)
|
||||||
if (ContractType const* type = dynamic_cast<ContractType const*>(_memberAccess.expression().annotation().type.get()))
|
if (ContractType const* type = dynamic_cast<ContractType const*>(_memberAccess.expression().annotation().type.get()))
|
||||||
if (type->contractDefinition() == *m_currentContract)
|
if (type->contractDefinition() == *m_currentContract)
|
||||||
warning(_memberAccess.location(), "\"this\" used in constructor.");
|
m_errorReporter.warning(_memberAccess.location(), "\"this\" used in constructor.");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user