mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22: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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mModule->IsInSpecializedSection())
|
||||||
|
{
|
||||||
if (!curCheckType->IsTypeMemberAccessible(field->mDeclaringType, activeTypeDef))
|
if (!curCheckType->IsTypeMemberAccessible(field->mDeclaringType, activeTypeDef))
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (matchedField != NULL)
|
if (matchedField != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue