1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

GetUnspecializedMethodInstance local method fix

This commit is contained in:
Brian Fiete 2021-01-02 05:27:09 -08:00
parent ca8b1a7959
commit b18cdc706c

View file

@ -9754,6 +9754,9 @@ BfMethodInstance* BfModule::GetUnspecializedMethodInstance(BfMethodInstance* met
if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))
return methodInstance;
if (methodInstance->mMethodDef->mIsLocalMethod)
return methodInstance;
auto unspecializedType = ResolveTypeDef(genericType->mTypeDef);
if (unspecializedType == NULL)
{