Przeglądaj źródła

GetUnspecializedMethodInstance fix

Brian Fiete 4 lat temu
rodzic
commit
ca8b1a7959
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      IDEHelper/Compiler/BfModule.cpp

+ 3 - 2
IDEHelper/Compiler/BfModule.cpp

@@ -9746,8 +9746,9 @@ BfMethodInstance* BfModule::GetUnspecializedMethodInstance(BfMethodInstance* met
 	if (!owner->IsGenericTypeInstance())
 		return methodInstance;
 
-	BF_ASSERT(!owner->IsDelegateFromTypeRef());
-	BF_ASSERT(!owner->IsTuple());
+	if ((owner->IsDelegateFromTypeRef()) ||
+		(owner->IsTuple()))
+		return methodInstance;
 
 	auto genericType = (BfTypeInstance*)owner;
 	if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))