1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed bind result origTarget override

This commit is contained in:
Brian Fiete 2021-10-26 07:37:46 -07:00
parent 30ee2516ca
commit 67ce0dcfee

View file

@ -8686,6 +8686,10 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
prevBindResult.Restore();
auto fieldTypeInst = fieldVal.mType->ToTypeInstance();
MarkResultUsed();
if (mFunctionBindResult != NULL)
{
mFunctionBindResult->mOrigTarget = BfTypedValue();
}
return MatchMethod(targetSrc, NULL, fieldVal, false, false, "Invoke", argValues, methodGenericArguments, checkedKind);
}
if (fieldVal.mType->IsVar())