mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed sized array const-lookup dependency issue
This commit is contained in:
parent
1e3d0308bf
commit
8a32ce5a69
6 changed files with 18 additions and 4 deletions
|
@ -3365,6 +3365,12 @@ void BfModule::AddDependency(BfType* usedType, BfType* userType, BfDependencyMap
|
|||
if (usedType == userType)
|
||||
return;
|
||||
|
||||
if (((flags & BfDependencyMap::DependencyFlag_ConstValue) != 0) && (mContext->mCurTypeState != NULL) && (mContext->mCurTypeState->mResolveKind == BfTypeState::ResolveKind_FieldType))
|
||||
{
|
||||
// This can be an `int32[UsedType.cVal]` type reference
|
||||
flags = (BfDependencyMap::DependencyFlags)(flags | BfDependencyMap::DependencyFlag_ValueTypeSizeDep);
|
||||
}
|
||||
|
||||
if ((mCurMethodInstance != NULL) && (mCurMethodInstance->mIsAutocompleteMethod))
|
||||
{
|
||||
if (userType->IsMethodRef())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue