1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed method selection when we have append args

This commit is contained in:
Brian Fiete 2020-01-15 08:31:34 -08:00
parent 9d1b85cceb
commit 39b7309dd5
7 changed files with 19 additions and 9 deletions

View file

@ -571,6 +571,19 @@ String BfMethodDef::ToString()
return methodText;
}
int BfMethodDef::GetExplicitParamCount()
{
for (int i = 0; i < (int)mParams.size(); i++)
{
auto param = mParams[i];
if ((param->mParamKind != BfParamKind_AppendIdx) &&
(param->mParamKind != BfParamKind_ImplicitCapture))
return (int)mParams.size() - i;
}
return (int)mParams.size();
}
///
void BfTypeDef::Reset()