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:
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);
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue