mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move assertion in PostTypeChecker's ConstStateVarCircularReferenceChecker to account for function type variables
This commit is contained in:
@@ -133,9 +133,9 @@ struct ConstStateVarCircularReferenceChecker: public PostTypeChecker::Checker
|
||||
|
||||
bool visit(VariableDeclaration const& _variable) override
|
||||
{
|
||||
solAssert(!m_currentConstVariable, "");
|
||||
if (_variable.isConstant())
|
||||
{
|
||||
solAssert(!m_currentConstVariable, "");
|
||||
m_currentConstVariable = &_variable;
|
||||
m_constVariables.push_back(&_variable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user