mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix bad cast in base constructor modifier.
This commit is contained in:
@@ -101,13 +101,18 @@ bool SMTChecker::visit(ModifierDefinition const&)
|
||||
|
||||
bool SMTChecker::visit(FunctionDefinition const& _function)
|
||||
{
|
||||
m_functionPath.push_back(&_function);
|
||||
m_modifierDepthStack.push_back(-1);
|
||||
|
||||
if (_function.isConstructor())
|
||||
{
|
||||
m_errorReporter.warning(
|
||||
_function.location(),
|
||||
"Assertion checker does not yet support constructors."
|
||||
);
|
||||
m_functionPath.push_back(&_function);
|
||||
m_modifierDepthStack.push_back(-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Not visited by a function call
|
||||
if (isRootFunction())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user