mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Fixed lockup check iface conformance in failed type
This commit is contained in:
parent
ec3ea6bd49
commit
ef57930170
1 changed files with 6 additions and 2 deletions
|
@ -21974,7 +21974,10 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
|
|||
bool storeIFaceMethod = false;
|
||||
|
||||
if ((mCompiler->mPassInstance->HasFailed()) && (iMethodIdx >= (int)ifaceInst->mMethodInstanceGroups.size()))
|
||||
{
|
||||
checkMethodDef = checkMethodDef->mNextWithSameName;
|
||||
continue;
|
||||
}
|
||||
|
||||
auto& iMethodGroup = ifaceInst->mMethodInstanceGroups[iMethodIdx];
|
||||
auto iMethodInst = iMethodGroup.mDefault;
|
||||
|
@ -21982,6 +21985,7 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
|
|||
{
|
||||
if ((!ifaceInst->IsGenericTypeInstance()) || (!ifaceInst->mTypeDef->mIsCombinedPartial))
|
||||
AssertErrorState();
|
||||
checkMethodDef = checkMethodDef->mNextWithSameName;
|
||||
continue;
|
||||
}
|
||||
if (iMethodInst->mMethodDef->mName == methodInstance->mMethodDef->mName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue