1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

GetRawMethodInstanceAtIdx handling of mid-compile-deleted types

This commit is contained in:
Brian Fiete 2025-01-23 08:06:57 -08:00
parent 58979f6407
commit 22238e04ef

View file

@ -11081,6 +11081,12 @@ bool BfModule::GetBasePropertyDef(BfPropertyDef*& propDef, BfTypeInstance*& type
BfMethodInstance* BfModule::GetRawMethodInstanceAtIdx(BfTypeInstance* typeInstance, int methodIdx, const char* assertName) BfMethodInstance* BfModule::GetRawMethodInstanceAtIdx(BfTypeInstance* typeInstance, int methodIdx, const char* assertName)
{ {
if (typeInstance->IsDeleting())
{
InternalError("GetRawMethodInstanceAtIdx for deleted type", typeInstance->mTypeDef->GetRefNode());
return NULL;
}
if (!typeInstance->mResolvingVarField) if (!typeInstance->mResolvingVarField)
{ {
if (!typeInstance->DefineStateAllowsStaticMethods()) if (!typeInstance->DefineStateAllowsStaticMethods())