mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Error when using empty parenthesis for base class constructors that require arguments.
This commit is contained in:
@@ -157,8 +157,8 @@ void ContractCompiler::appendInitAndConstructorCode(ContractDefinition const& _c
|
||||
);
|
||||
solAssert(baseContract, "");
|
||||
|
||||
if (!m_baseArguments.count(baseContract->constructor()) && !base->arguments().empty())
|
||||
m_baseArguments[baseContract->constructor()] = &base->arguments();
|
||||
if (!m_baseArguments.count(baseContract->constructor()) && base->arguments() && !base->arguments()->empty())
|
||||
m_baseArguments[baseContract->constructor()] = base->arguments();
|
||||
}
|
||||
}
|
||||
// Initialization of state variables in base-to-derived order.
|
||||
|
||||
Reference in New Issue
Block a user