1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed generic arg inference on types with emissions

This commit is contained in:
Brian Fiete 2022-05-23 12:29:59 -07:00
parent 5699a3ab6b
commit f9396f69c0

View file

@ -495,7 +495,7 @@ bool BfGenericInferContext::InferGenericArgument(BfMethodInstance* methodInstanc
if (!argType->IsGenericTypeInstance())
return true;
auto argGenericType = (BfTypeInstance*)argType;
if (argGenericType->mTypeDef != wantGenericType->mTypeDef)
if (argGenericType->mTypeDef->GetDefinition() != wantGenericType->mTypeDef->GetDefinition())
return true;
for (int genericArgIdx = 0; genericArgIdx < (int)argGenericType->mGenericTypeInfo->mTypeGenericArguments.size(); genericArgIdx++)