Merge pull request #9954 from ethereum/issue-9948

Remove unneeded assert
This commit is contained in:
chriseth 2020-10-06 16:50:14 +02:00 committed by GitHub
commit 25d408058b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.