mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Relaxed field accessibility check in specialized sections
This commit is contained in:
parent
1360afbea1
commit
d4c2e58063
1 changed files with 5 additions and 2 deletions
|
@ -5346,8 +5346,11 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!mModule->IsInSpecializedSection())
|
||||
{
|
||||
if (!curCheckType->IsTypeMemberAccessible(field->mDeclaringType, activeTypeDef))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (matchedField != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue