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:
parent
9d1b85cceb
commit
39b7309dd5
7 changed files with 19 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue