fixes error after conflict resolving

This commit is contained in:
LianaHus
2015-10-15 11:10:55 +02:00
parent c3491e4469
commit 7a7a7dcbb5
4 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -140,7 +140,7 @@ bool CompilerStack::parse()
{
m_globalContext->setCurrentContract(*contract);
resolver.updateDeclaration(*m_globalContext->currentThis());
TypeChecker typeChecker;
TypeChecker typeChecker(m_errors);
if (typeChecker.checkTypeRequirements(*contract))
{
contract->setDevDocumentation(interfaceHandler.devDocumentation(*contract));
@@ -150,7 +150,6 @@ bool CompilerStack::parse()
typesFine = false;
m_contracts[contract->name()].contract = contract;
m_errors += typeChecker.errors();
}
m_parseSuccessful = typesFine;
return m_parseSuccessful;