mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Generic delegate bind fix
This commit is contained in:
parent
e23aac35ef
commit
0b48a60592
1 changed files with 5 additions and 1 deletions
|
@ -1125,7 +1125,11 @@ BfTypedValue BfMethodMatcher::ResolveArgTypedValue(BfResolvedArg& resolvedArg, B
|
|||
BF_ASSERT(resolvedArg.mExpression->IsA<BfDelegateBindExpression>());
|
||||
auto delegateBindExpr = BfNodeDynCast<BfDelegateBindExpression>(resolvedArg.mExpression);
|
||||
BfMethodInstance* boundMethodInstance = NULL;
|
||||
if (exprEvaluator.CanBindDelegate(delegateBindExpr, &boundMethodInstance, origCheckType, genericArgumentsSubstitute))
|
||||
|
||||
auto bindType = checkType;
|
||||
if ((bindType == NULL) && (origCheckType != NULL) && (!origCheckType->IsUnspecializedTypeVariation()))
|
||||
bindType = checkType;
|
||||
if (exprEvaluator.CanBindDelegate(delegateBindExpr, &boundMethodInstance, bindType, genericArgumentsSubstitute))
|
||||
{
|
||||
if (delegateBindExpr->mNewToken == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue