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:
parent
58979f6407
commit
22238e04ef
1 changed files with 6 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue