1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed property visibility

This commit is contained in:
Brian Fiete 2021-01-16 08:47:10 -08:00
parent 10d4047d01
commit da49fa0408

View file

@ -4675,10 +4675,13 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
}
if ((!target.IsStatic()) || (prop->mIsStatic))
{
if (!mModule->IsInSpecializedSection())
{
if ((!curCheckType->IsTypeMemberIncluded(prop->mDeclaringType, activeTypeDef, mModule)) ||
(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, activeTypeDef)))
(!curCheckType->IsTypeMemberAccessible(prop->mDeclaringType, mModule->GetVisibleProjectSet())))
continue;
}
if (matchedProp != NULL)
{