1
0
Fork 0
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:
Brian Fiete 2020-09-27 22:21:15 -07:00
parent ec3ea6bd49
commit ef57930170

View file

@ -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)