浏览代码

GetUnspecializedMethodInstance local method fix

Brian Fiete 4 年之前
父节点
当前提交
b18cdc706c
共有 1 个文件被更改,包括 3 次插入0 次删除
  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)
 	{