mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed cases of undetected ambiguous calls
This commit is contained in:
parent
e8b35ce0c4
commit
4cea33d96f
6 changed files with 94 additions and 14 deletions
|
@ -16338,15 +16338,13 @@ void BfModule::ProcessMethod_SetupParams(BfMethodInstance* methodInstance, BfTyp
|
|||
BfTypeCode loweredTypeCode2 = BfTypeCode_None;
|
||||
|
||||
bool isParamSkipped = methodInstance->IsParamSkipped(paramIdx);
|
||||
|
||||
BfType* unresolvedType = methodInstance->GetParamType(paramIdx, false);
|
||||
if (unresolvedType == NULL)
|
||||
|
||||
auto resolvedType = methodInstance->GetParamType(paramIdx);
|
||||
if (resolvedType == NULL)
|
||||
{
|
||||
AssertErrorState();
|
||||
unresolvedType = mContext->mBfObjectType;
|
||||
paramVar->mParamFailed = true;
|
||||
}
|
||||
auto resolvedType = methodInstance->GetParamType(paramIdx, true);
|
||||
prevIgnoreErrors.Restore();
|
||||
PopulateType(resolvedType, BfPopulateType_Declaration);
|
||||
paramVar->mResolvedType = resolvedType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue