1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Fixed bound base property lookups in specialized generic methods

This commit is contained in:
Brian Fiete 2021-07-19 12:12:35 -07:00
parent 14e79b7949
commit 4b8983a013

View file

@ -4824,8 +4824,13 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
mPropTarget = BfTypedValue(curCheckType);
else if (isBaseLookup)
{
mPropTarget = mModule->Cast(targetSrc, target, curCheckType);
BF_ASSERT(mPropTarget);
if (target.mValue.IsFake())
mPropTarget = BfTypedValue(target.mValue, curCheckType);
else
{
mPropTarget = mModule->Cast(targetSrc, target, curCheckType);
BF_ASSERT(mPropTarget);
}
}
else
mPropTarget = target;