mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Re-allow multiple modifiers per function.
This commit is contained in:
@@ -510,8 +510,6 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
{
|
||||
if (dynamic_cast<ContractDefinition const*>(decl))
|
||||
m_errorReporter.declarationError(modifier->location(), "Base constructor already provided.");
|
||||
else
|
||||
m_errorReporter.declarationError(modifier->location(), "Modifier already used for this function.");
|
||||
}
|
||||
else
|
||||
modifiers.insert(decl);
|
||||
|
||||
Reference in New Issue
Block a user