Merge pull request #3824 from ethereum/baseArgumentsEmptyParenthesis

Error when using empty parentheses for base class constructors that r…
This commit is contained in:
Daniel Kirchner
2018-04-05 14:43:28 +02:00
committed by GitHub
10 changed files with 73 additions and 36 deletions
+2 -2
View File
@@ -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.