2
0
Эх сурвалжийг харах

GetUnspecializedMethodInstance local method fix

Brian Fiete 4 жил өмнө
parent
commit
b18cdc706c

+ 3 - 0
IDEHelper/Compiler/BfModule.cpp

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