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:
1 parent
fefb3fad6f
commit
e6f13353f2
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user