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

Fixed method selection bug with 'params' methods

This commit is contained in:
Brian Fiete 2020-12-26 11:57:59 -08:00
parent 4a00830adf
commit 585db3b579

View file

@ -1706,7 +1706,7 @@ bool BfMethodMatcher::CheckMethod(BfTypeInstance* targetTypeInstance, BfTypeInst
if ((argIdx >= 0) && (methodInstance->GetParamKind(paramIdx) == BfParamKind_Params) && (paramsElementType == NULL))
{
if (paramIdx >= (int) mArguments.size())
if (argIdx >= (int) mArguments.size())
break; // No params
BfTypedValue argTypedValue = ResolveArgTypedValue(mArguments[argIdx], NULL, genericArgumentsSubstitute);