Fix incorrectly set annotation.requiredLookup

This commit is contained in:
hrkrshnn 2020-10-30 15:40:06 +01:00
parent be02db4950
commit adcf9eba8d

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;