mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report an error if immutables not assigned
This commit is contained in:
@@ -516,7 +516,17 @@ bool CompilerStack::compile()
|
||||
if (auto contract = dynamic_cast<ContractDefinition const*>(node.get()))
|
||||
if (isRequestedContract(*contract))
|
||||
{
|
||||
compileContract(*contract, otherCompilers);
|
||||
try
|
||||
{
|
||||
compileContract(*contract, otherCompilers);
|
||||
}
|
||||
catch (Error const& _error)
|
||||
{
|
||||
if (_error.type() != Error::Type::CodeGenerationError)
|
||||
throw;
|
||||
m_errorReporter.error(_error.errorId(), _error.type(), SourceLocation(), _error.what());
|
||||
return false;
|
||||
}
|
||||
if (m_generateIR || m_generateEwasm)
|
||||
generateIR(*contract);
|
||||
if (m_generateEwasm)
|
||||
|
||||
Reference in New Issue
Block a user