Browse Source

GetUnspecializedMethodInstance local method fix

Brian Fiete 4 years ago
parent
commit
b18cdc706c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      IDEHelper/Compiler/BfModule.cpp

+ 3 - 0
IDEHelper/Compiler/BfModule.cpp

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