mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
parent
5a56496db9
commit
08015590f2
@ -58,6 +58,13 @@ Declaration const* DeclarationContainer::conflictingDeclaration(
|
|||||||
return declaration;
|
return declaration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (dynamic_cast<EventDefinition const*>(&_declaration))
|
||||||
|
{
|
||||||
|
// check that all other declarations with the same name are events
|
||||||
|
for (Declaration const* declaration: declarations)
|
||||||
|
if (!dynamic_cast<EventDefinition const*>(declaration))
|
||||||
|
return declaration;
|
||||||
|
}
|
||||||
else if (declarations.size() == 1 && declarations.front() == &_declaration)
|
else if (declarations.size() == 1 && declarations.front() == &_declaration)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
else if (!declarations.empty())
|
else if (!declarations.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user