mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix PostTypeChecker retaining state across contracts
This commit is contained in:
parent
fefb3fad6f
commit
e6f13353f2
@ -58,6 +58,9 @@ void PostTypeChecker::endVisit(ContractDefinition const&)
|
||||
for (auto declaration: m_constVariables)
|
||||
if (auto identifier = findCycle(declaration))
|
||||
typeError(declaration->location(), "The value of the constant " + declaration->name() + " has a cyclic dependency via " + identifier->name() + ".");
|
||||
|
||||
m_constVariables.clear();
|
||||
m_constVariableDependencies.clear();
|
||||
}
|
||||
|
||||
bool PostTypeChecker::visit(VariableDeclaration const& _variable)
|
||||
|
Loading…
Reference in New Issue
Block a user