mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Consider all grandparents in override analysis.
This commit is contained in:
@@ -897,10 +897,11 @@ OverrideChecker::OverrideProxyBySignatureMultiSet const& OverrideChecker::inheri
|
||||
if (var->isPublic())
|
||||
functionsInBase.emplace(OverrideProxy{var});
|
||||
|
||||
for (OverrideProxy const& func: inheritedFunctions(*base))
|
||||
functionsInBase.insert(func);
|
||||
|
||||
result += functionsInBase;
|
||||
|
||||
for (OverrideProxy const& func: inheritedFunctions(*base))
|
||||
if (!functionsInBase.count(func))
|
||||
result.insert(func);
|
||||
}
|
||||
|
||||
m_inheritedFunctions[&_contract] = result;
|
||||
|
||||
Reference in New Issue
Block a user