Merge pull request #10161 from ethereum/VirtualLookup-static

Fix incorrectly set annotation.requiredLookup
This commit is contained in:
chriseth 2020-11-03 17:03:17 +01:00 committed by GitHub
commit 001eac546e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;