mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed TypeEquals
This commit is contained in:
parent
c2ed003741
commit
296faa7510
1 changed files with 2 additions and 2 deletions
|
@ -4945,12 +4945,12 @@ bool BfTypeUtils::TypeEquals(BfType* typeA, BfType* typeB, BfTypeInstance* selfT
|
|||
if (typeA->IsUnspecializedTypeVariation())
|
||||
{
|
||||
SetAndRestoreValue<BfTypeInstance*> prevCurTypeInst(selfType->mModule->mCurTypeInstance, selfType);
|
||||
return selfType->mModule->ResolveGenericType(typeA, NULL, NULL);
|
||||
typeA = selfType->mModule->ResolveGenericType(typeA, NULL, NULL);
|
||||
}
|
||||
if (typeB->IsUnspecializedTypeVariation())
|
||||
{
|
||||
SetAndRestoreValue<BfTypeInstance*> prevCurTypeInst(selfType->mModule->mCurTypeInstance, selfType);
|
||||
return selfType->mModule->ResolveGenericType(typeB, NULL, NULL);
|
||||
typeB = selfType->mModule->ResolveGenericType(typeB, NULL, NULL);
|
||||
}
|
||||
return typeA == typeB;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue