Remove unneeded assert

An error will trigger later in the name resolve phase
This commit is contained in:
Mathias Baumann 2020-10-05 13:00:37 +02:00
parent 756e21a888
commit 6af16469e7
2 changed files with 4 additions and 5 deletions

View File

@ -1124,11 +1124,6 @@ void CompilerStack::storeContractDefinitions()
// should already cause a double-declaration error elsewhere.
if (!m_contracts.count(fullyQualifiedName))
m_contracts[fullyQualifiedName].contract = contract;
else
solAssert(
m_errorReporter.hasErrors(),
"Contract already present (name clash?), but no error was reported."
);
}
}

View File

@ -0,0 +1,4 @@
contract X {}
contract X {}
// ----
// DeclarationError 2333: (14-27): Identifier already declared.