mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10161 from ethereum/VirtualLookup-static
Fix incorrectly set annotation.requiredLookup
This commit is contained in:
commit
001eac546e
@ -2748,7 +2748,8 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
|
||||
|
||||
if (!funType->bound())
|
||||
if (auto contractType = dynamic_cast<ContractType const*>(exprType))
|
||||
requiredLookup = contractType->isSuper() ? VirtualLookup::Super : VirtualLookup::Virtual;
|
||||
if (contractType->isSuper())
|
||||
requiredLookup = VirtualLookup::Super;
|
||||
}
|
||||
|
||||
annotation.requiredLookup = requiredLookup;
|
||||
|
Loading…
Reference in New Issue
Block a user