mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Specialized-by-autocomplete-method dependency fix
This commit is contained in:
parent
4678dcb9e5
commit
a87731e0ef
2 changed files with 5 additions and 2 deletions
|
@ -3333,7 +3333,10 @@ void BfModule::AddDependency(BfType* usedType, BfType* userType, BfDependencyMap
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usedType->IsSpecializedByAutoCompleteMethod())
|
if (usedType->IsSpecializedByAutoCompleteMethod())
|
||||||
return;
|
{
|
||||||
|
if ((flags & (BfDependencyMap::DependencyFlag_TypeGenericArg | BfDependencyMap::DependencyFlag_OuterType | BfDependencyMap::DependencyFlag_DerivedFrom)) == 0)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// if (usedType->IsBoxed())
|
// if (usedType->IsBoxed())
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -1099,7 +1099,7 @@ void BfModule::PopulateType(BfType* resolvedTypeRef, BfPopulateType populateType
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
resolvedTypeRef->mTypeId = mCompiler->mCurTypeId++;
|
resolvedTypeRef->mTypeId = mCompiler->mCurTypeId++;
|
||||||
|
|
||||||
while (resolvedTypeRef->mTypeId >= (int)mContext->mTypes.size())
|
while (resolvedTypeRef->mTypeId >= (int)mContext->mTypes.size())
|
||||||
mContext->mTypes.Add(NULL);
|
mContext->mTypes.Add(NULL);
|
||||||
mContext->mTypes[resolvedTypeRef->mTypeId] = resolvedTypeRef;
|
mContext->mTypes[resolvedTypeRef->mTypeId] = resolvedTypeRef;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue