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