1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed function call from expression

This commit is contained in:
Brian Fiete 2022-01-14 08:15:49 -05:00
parent b048cafcfd
commit c378ef6e92

View file

@ -16785,7 +16785,7 @@ void BfExprEvaluator::DoInvocation(BfAstNode* target, BfMethodBoundExpression* m
if (innerInvocationResult.mType->IsTypeInstance()) if (innerInvocationResult.mType->IsTypeInstance())
{ {
auto invocationTypeInst = innerInvocationResult.mType->ToTypeInstance(); auto invocationTypeInst = innerInvocationResult.mType->ToTypeInstance();
if (invocationTypeInst->mTypeDef->mIsDelegate) if ((invocationTypeInst->mTypeDef->mIsDelegate) || (invocationTypeInst->mTypeDef->mIsFunction))
{ {
thisValue = innerInvocationResult; thisValue = innerInvocationResult;
} }