mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed re-partialization of orphaned extensions
This commit is contained in:
parent
46751bb706
commit
e25f8901a5
1 changed files with 7 additions and 1 deletions
|
@ -3092,7 +3092,7 @@ void BfCompiler::UpdateRevisedTypes()
|
|||
if (checkTypeDef != rootTypeDef)
|
||||
{
|
||||
if ((checkTypeDef->mIsCombinedPartial) ||
|
||||
(!checkTypeDef->mIsPartial) ||
|
||||
((!checkTypeDef->mIsPartial) && (checkTypeDef->mTypeCode != BfTypeCode_Extension)) ||
|
||||
(checkTypeDef->mPartialUsed) ||
|
||||
(!checkTypeDef->NameEquals(rootTypeDef)) ||
|
||||
(checkTypeDef->mGenericParamDefs.size() != rootTypeDef->mGenericParamDefs.size()) ||
|
||||
|
@ -3103,6 +3103,12 @@ void BfCompiler::UpdateRevisedTypes()
|
|||
}
|
||||
}
|
||||
|
||||
if (checkTypeDef->mTypeCode == BfTypeCode_Extension)
|
||||
{
|
||||
// This was an extension that was orphaned but now we're taking it back
|
||||
checkTypeDef->mIsPartial = true;
|
||||
}
|
||||
|
||||
compositeTypeDef->mPartialUsed = true;
|
||||
checkTypeDef->mPartialUsed = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue