mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed function call from expression
This commit is contained in:
parent
b048cafcfd
commit
c378ef6e92
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue