1
0
Fork 0
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:
Brian Fiete 2022-06-01 11:01:03 -07:00
parent 1360afbea1
commit d4c2e58063

View file

@ -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)
{