mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed autoprop backing field access
This commit is contained in:
parent
2bbe66cecc
commit
259f50d612
2 changed files with 11 additions and 3 deletions
|
@ -5291,9 +5291,15 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
|
||||
auto field = nextField;
|
||||
nextField = nextField->mNextWithSameName;
|
||||
|
||||
auto checkProtection = field->mProtection;
|
||||
if (checkProtection == BfProtection_Hidden)
|
||||
{
|
||||
// Allow acessing hidden fields
|
||||
checkProtection = BfProtection_Private;
|
||||
}
|
||||
|
||||
if (((flags & BfLookupFieldFlag_IgnoreProtection) == 0) && (!isFailurePass) &&
|
||||
(!mModule->CheckProtection(protectionCheckFlags, curCheckType, field->mDeclaringType->mProject, field->mProtection, startCheckType)))
|
||||
(!mModule->CheckProtection(protectionCheckFlags, curCheckType, field->mDeclaringType->mProject, checkProtection, startCheckType)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue