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);
|
m_globalContext->setCurrentContract(*contract);
|
||||||
resolver.updateDeclaration(*m_globalContext->currentThis());
|
resolver.updateDeclaration(*m_globalContext->currentThis());
|
||||||
TypeChecker typeChecker;
|
TypeChecker typeChecker(m_errors);
|
||||||
if (typeChecker.checkTypeRequirements(*contract))
|
if (typeChecker.checkTypeRequirements(*contract))
|
||||||
{
|
{
|
||||||
contract->setDevDocumentation(interfaceHandler.devDocumentation(*contract));
|
contract->setDevDocumentation(interfaceHandler.devDocumentation(*contract));
|
||||||
@ -150,7 +150,6 @@ bool CompilerStack::parse()
|
|||||||
typesFine = false;
|
typesFine = false;
|
||||||
|
|
||||||
m_contracts[contract->name()].contract = contract;
|
m_contracts[contract->name()].contract = contract;
|
||||||
m_errors += typeChecker.errors();
|
|
||||||
}
|
}
|
||||||
m_parseSuccessful = typesFine;
|
m_parseSuccessful = typesFine;
|
||||||
return m_parseSuccessful;
|
return m_parseSuccessful;
|
||||||
|
@ -60,7 +60,7 @@ bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
|
|||||||
Error(Error::Type::DeclarationError) <<
|
Error(Error::Type::DeclarationError) <<
|
||||||
errinfo_sourceLocation(_typeName.location()) <<
|
errinfo_sourceLocation(_typeName.location()) <<
|
||||||
errinfo_comment("Identifier not found or not unique.")
|
errinfo_comment("Identifier not found or not unique.")
|
||||||
|
);
|
||||||
_typeName.annotation().referencedDeclaration = declaration;
|
_typeName.annotation().referencedDeclaration = declaration;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -607,7 +607,7 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement)
|
|||||||
{
|
{
|
||||||
if (ref->dataStoredIn(DataLocation::Storage))
|
if (ref->dataStoredIn(DataLocation::Storage))
|
||||||
{
|
{
|
||||||
auto err = make_shared<Warning>();
|
auto err = make_shared<Error>(Error::Type::Warning);
|
||||||
*err <<
|
*err <<
|
||||||
errinfo_sourceLocation(varDecl.location()) <<
|
errinfo_sourceLocation(varDecl.location()) <<
|
||||||
errinfo_comment("Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?");
|
errinfo_comment("Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?");
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <libdevcore/Assertions.h>
|
#include <libdevcore/Assertions.h>
|
||||||
#include <libsolidity/Exceptions.h>
|
|
||||||
|
|
||||||
/// Assertion that throws an InternalCompilerError containing the given description if it is not met.
|
/// Assertion that throws an InternalCompilerError containing the given description if it is not met.
|
||||||
#define solAssert(CONDITION, DESCRIPTION) \
|
#define solAssert(CONDITION, DESCRIPTION) \
|
||||||
|
Loading…
Reference in New Issue
Block a user