mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Extension inner type visibility fix
This commit is contained in:
parent
fb3cd1ac83
commit
69fab22a39
6 changed files with 43 additions and 8 deletions
|
@ -4961,7 +4961,7 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
// For 'let', make read-only
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
BfResolveTypeRefFlags resolveFlags = BfResolveTypeRefFlag_NoResolveGenericParam;
|
||||
if (initializer != NULL)
|
||||
resolveFlags = (BfResolveTypeRefFlags)(resolveFlags | BfResolveTypeRefFlag_AllowInferredSizedArray);
|
||||
|
@ -8547,13 +8547,9 @@ BfType* BfModule::ResolveInnerType(BfType* outerType, BfAstNode* typeRef, BfPopu
|
|||
if ((!isFailurePass) && ((resolveFlags & BfResolveTypeRefFlag_IgnoreProtection) == 0) &&
|
||||
(!CheckProtection(latestCheckType->mProtection, latestCheckType, allowProtected, allowPrivate)))
|
||||
continue;
|
||||
|
||||
if (checkType->mProject != checkOuterType->mTypeDef->mProject)
|
||||
{
|
||||
auto visibleProjectSet = GetVisibleProjectSet();
|
||||
if ((visibleProjectSet == NULL) || (!visibleProjectSet->Contains(checkType->mProject)))
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((checkType->mProject != checkOuterType->mTypeDef->mProject) && (!IsProjectVisible(checkType->mProject)))
|
||||
continue;
|
||||
|
||||
if ((checkType->mName->mString == findName) && (checkType->GetSelfGenericParamCount() == numGenericArgs))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue