Kaynağa Gözat

Fixed rettype hashing

Brian Fiete 1 yıl önce
ebeveyn
işleme
b108349a67

+ 1 - 1
IDEHelper/Compiler/BfModule.cpp

@@ -16537,7 +16537,7 @@ void BfModule::AssertParseErrorState()
 
 BfType* BfModule::GetDelegateReturnType(BfType* delegateType)
 {
-	BF_ASSERT(delegateType->IsDelegate());
+	BF_ASSERT(delegateType->IsDelegateOrFunction());
 	auto typeInst = delegateType->ToTypeInstance();
 	PopulateType(typeInst, BfPopulateType_DataAndMethods);
 	BfMethodInstance* invokeMethodInstance = GetRawMethodInstanceAtIdx(typeInst->ToTypeInstance(), 0, "Invoke");

+ 1 - 1
IDEHelper/Compiler/BfResolvedTypeUtils.cpp

@@ -3880,7 +3880,7 @@ int BfResolvedTypeSet::DoHash(BfTypeReference* typeRef, LookupContext* ctx, BfHa
 			}
 			if (type->IsRef())
 				type = type->GetUnderlyingType();
-			return Hash(type, ctx, flags, hashSeed);
+			return DoHash(type, ctx, flags, hashSeed);
 		}
 
 		int elemHash = Hash(retTypeTypeRef->mElementType, ctx, BfHashFlag_None, hashSeed) ^ HASH_MODTYPE + retTypeTypeRef->mRetTypeToken->mToken;