Browse Source

GetUnspecializedMethodInstance local method fix

Brian Fiete 4 năm trước cách đây
mục cha
commit
b18cdc706c
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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()))
 		return methodInstance;
 	
+	if (methodInstance->mMethodDef->mIsLocalMethod)
+		return methodInstance;
+
 	auto unspecializedType = ResolveTypeDef(genericType->mTypeDef);	
 	if (unspecializedType == NULL)
 	{