mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed reification of elemented underlying types
This commit is contained in:
parent
31608be8a9
commit
ae46452f9e
2 changed files with 16 additions and 3 deletions
|
@ -1257,6 +1257,22 @@ void BfModule::PopulateType(BfType* resolvedTypeRef, BfPopulateType populateType
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we're a type like "A*", make sure we reify "A" if necessary
|
||||
auto checkUnderlying = resolvedTypeRef->GetUnderlyingType();
|
||||
while (checkUnderlying != NULL)
|
||||
{
|
||||
auto checkTypeInst = checkUnderlying->ToTypeInstance();
|
||||
if (checkTypeInst != NULL)
|
||||
{
|
||||
if (!checkTypeInst->mIsReified)
|
||||
PopulateType(checkTypeInst, BfPopulateType_BaseType);
|
||||
break;
|
||||
}
|
||||
checkUnderlying = checkUnderlying->GetUnderlyingType();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!resolvedTypeRef->IsIncomplete())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue