mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed tuple dependency issue
This commit is contained in:
parent
a8610ed711
commit
c967d459f8
1 changed files with 7 additions and 7 deletions
|
@ -551,21 +551,21 @@ void BfModule::InitType(BfType* resolvedTypeRef, BfPopulateType populateType)
|
|||
typeInst->mIsReified = mIsReified;
|
||||
|
||||
//BF_ASSERT(typeInst->mTypeDef->mTypeCode != BfTypeCode_Extension);
|
||||
|
||||
typeInst->mRevision = mCompiler->mRevision;
|
||||
if (typeInst->mTypeDef != NULL)
|
||||
BF_ASSERT(typeInst->mTypeDef->mDefState != BfTypeDef::DefState_Deleted);
|
||||
|
||||
if (resolvedTypeRef->IsTuple())
|
||||
{
|
||||
auto tupleType = (BfTypeInstance*)resolvedTypeRef;
|
||||
for (int fieldIdx = 0; fieldIdx < (int)tupleType->mFieldInstances.size(); fieldIdx++)
|
||||
{
|
||||
{
|
||||
auto fieldInstance = (BfFieldInstance*)&tupleType->mFieldInstances[fieldIdx];
|
||||
// if (fieldInstance->GetResolvedType()->IsUnspecializedType())
|
||||
// tupleType->mHasUnspecializedMembers = true;
|
||||
// We need to make sure dependencies get set immediately since we already resolved the types
|
||||
AddFieldDependency(typeInst, fieldInstance, fieldInstance->mResolvedType);
|
||||
}
|
||||
}
|
||||
|
||||
typeInst->mRevision = mCompiler->mRevision;
|
||||
if (typeInst->mTypeDef != NULL)
|
||||
BF_ASSERT(typeInst->mTypeDef->mDefState != BfTypeDef::DefState_Deleted);
|
||||
}
|
||||
|
||||
if (resolvedTypeRef->IsGenericTypeInstance())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue