mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 02:28:01 +02:00
Fixed bound base property lookups in specialized generic methods
This commit is contained in:
parent
14e79b7949
commit
4b8983a013
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue