From c378ef6e928fc62e8b883bebb4f21fa71e85cf48 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 14 Jan 2022 08:15:49 -0500 Subject: [PATCH] Fixed function call from expression --- IDEHelper/Compiler/BfExprEvaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 7fc9f529..c218f01b 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -16785,7 +16785,7 @@ void BfExprEvaluator::DoInvocation(BfAstNode* target, BfMethodBoundExpression* m if (innerInvocationResult.mType->IsTypeInstance()) { auto invocationTypeInst = innerInvocationResult.mType->ToTypeInstance(); - if (invocationTypeInst->mTypeDef->mIsDelegate) + if ((invocationTypeInst->mTypeDef->mIsDelegate) || (invocationTypeInst->mTypeDef->mIsFunction)) { thisValue = innerInvocationResult; }