mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixes error after conflict resolving
This commit is contained in:
parent
c3491e4469
commit
7a7a7dcbb5
@ -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;
|
||||
|
@ -60,7 +60,7 @@ bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
|
||||
Error(Error::Type::DeclarationError) <<
|
||||
errinfo_sourceLocation(_typeName.location()) <<
|
||||
errinfo_comment("Identifier not found or not unique.")
|
||||
|
||||
);
|
||||
_typeName.annotation().referencedDeclaration = declaration;
|
||||
return true;
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement)
|
||||
{
|
||||
if (ref->dataStoredIn(DataLocation::Storage))
|
||||
{
|
||||
auto err = make_shared<Warning>();
|
||||
auto err = make_shared<Error>(Error::Type::Warning);
|
||||
*err <<
|
||||
errinfo_sourceLocation(varDecl.location()) <<
|
||||
errinfo_comment("Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?");
|
||||
|
@ -23,7 +23,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <libdevcore/Assertions.h>
|
||||
#include <libsolidity/Exceptions.h>
|
||||
|
||||
/// Assertion that throws an InternalCompilerError containing the given description if it is not met.
|
||||
#define solAssert(CONDITION, DESCRIPTION) \
|
||||
|
Loading…
Reference in New Issue
Block a user