Fix import directive visits in type checker and view pure checker.

This commit is contained in:
Daniel Kirchner
2022-03-14 14:53:06 +01:00
committed by chriseth
parent 3f6beaa0ad
commit 0f1a63c3fa
8 changed files with 37 additions and 0 deletions
+6
View File
@@ -115,6 +115,12 @@ void SMTEncoder::endVisit(ContractDefinition const& _contract)
m_context.popSolver();
}
bool SMTEncoder::visit(ImportDirective const&)
{
// do not visit because the identifier therein will confuse us.
return false;
}
void SMTEncoder::endVisit(VariableDeclaration const& _varDecl)
{
// State variables are handled by the constructor.