mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Method selection fixes
This commit is contained in:
parent
1b9921981e
commit
f194d9ca0e
1 changed files with 7 additions and 0 deletions
|
@ -1954,6 +1954,13 @@ NoMatch:
|
||||||
|
|
||||||
if (mBackupMethodDef != NULL)
|
if (mBackupMethodDef != NULL)
|
||||||
{
|
{
|
||||||
|
int prevParamDiff = (int)mBackupMethodDef->GetExplicitParamCount() - (int)mArguments.size();
|
||||||
|
int paramDiff = (int)checkMethod->GetExplicitParamCount() - (int)mArguments.size();
|
||||||
|
if ((prevParamDiff < 0) && (prevParamDiff > paramDiff))
|
||||||
|
return false;
|
||||||
|
if ((prevParamDiff >= 0) && (paramDiff < 0))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (argMatchCount < mBackupArgMatchCount)
|
if (argMatchCount < mBackupArgMatchCount)
|
||||||
return false;
|
return false;
|
||||||
else if (argMatchCount == mBackupArgMatchCount)
|
else if (argMatchCount == mBackupArgMatchCount)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue