1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-24 10:38:02 +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); mPropTarget = BfTypedValue(curCheckType);
else if (isBaseLookup) else if (isBaseLookup)
{ {
mPropTarget = mModule->Cast(targetSrc, target, curCheckType); if (target.mValue.IsFake())
BF_ASSERT(mPropTarget); mPropTarget = BfTypedValue(target.mValue, curCheckType);
else
{
mPropTarget = mModule->Cast(targetSrc, target, curCheckType);
BF_ASSERT(mPropTarget);
}
} }
else else
mPropTarget = target; mPropTarget = target;