Преглед изворни кода

GetUnspecializedMethodInstance fix

Brian Fiete пре 4 година
родитељ
комит
ca8b1a7959
1 измењених фајлова са 3 додато и 2 уклоњено
  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())
 	if (!owner->IsGenericTypeInstance())
 		return methodInstance;
 		return methodInstance;
 
 
-	BF_ASSERT(!owner->IsDelegateFromTypeRef());
-	BF_ASSERT(!owner->IsTuple());
+	if ((owner->IsDelegateFromTypeRef()) ||
+		(owner->IsTuple()))
+		return methodInstance;
 
 
 	auto genericType = (BfTypeInstance*)owner;
 	auto genericType = (BfTypeInstance*)owner;
 	if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))
 	if ((genericType->IsUnspecializedType()) && (!genericType->IsUnspecializedTypeVariation()))