mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed property visibility
This commit is contained in:
parent
10d4047d01
commit
da49fa0408
1 changed files with 7 additions and 4 deletions
|
@ -4676,9 +4676,12 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
|
||||
if ((!target.IsStatic()) || (prop->mIsStatic))
|
||||
{
|
||||
if ((!curCheckType->IsTypeMemberIncluded(prop->mDeclaringType, activeTypeDef, mModule)) ||
|
||||
(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, activeTypeDef)))
|
||||
continue;
|
||||
if (!mModule->IsInSpecializedSection())
|
||||
{
|
||||
if ((!curCheckType->IsTypeMemberIncluded(prop->mDeclaringType, activeTypeDef, mModule)) ||
|
||||
(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, mModule->GetVisibleProjectSet())))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (matchedProp != NULL)
|
||||
{
|
||||
|
@ -7182,7 +7185,7 @@ BfTypedValue BfExprEvaluator::MatchConstructor(BfAstNode* targetSrc, BfMethodBou
|
|||
}
|
||||
|
||||
if (!mModule->IsInSpecializedSection())
|
||||
{
|
||||
{
|
||||
if ((!curTypeInst->IsTypeMemberIncluded(checkMethod->mDeclaringType, activeTypeDef, mModule)) ||
|
||||
(!curTypeInst->IsTypeMemberAccessible(checkMethod->mDeclaringType, visibleProjectSet)))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue