mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fix for sized array with const member size
This commit is contained in:
parent
20d0dcf8de
commit
e9ef8ed27c
2 changed files with 69 additions and 64 deletions
|
@ -3236,12 +3236,7 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
BfTypeInstance* startCheckType = mModule->mCurTypeInstance;
|
||||
mPropDef = NULL;
|
||||
mPropDefBypassVirtual = false;
|
||||
|
||||
if ((target.mType != NULL) && (mModule->mCurMethodState != NULL))
|
||||
{
|
||||
mModule->PopulateType(target.mType, BfPopulateType_BaseType);
|
||||
}
|
||||
|
||||
|
||||
if (target)
|
||||
{
|
||||
if ((!target.mType->IsValueType()) && (target.IsAddr()))
|
||||
|
@ -3265,6 +3260,9 @@ BfTypedValue BfExprEvaluator::LookupField(BfAstNode* targetSrc, BfTypedValue tar
|
|||
startCheckType = target.mType->ToTypeInstance();
|
||||
}
|
||||
|
||||
if ((startCheckType != NULL) && (startCheckType->mBaseType == NULL))
|
||||
mModule->PopulateType(startCheckType, BfPopulateType_BaseType);
|
||||
|
||||
String findName;
|
||||
int varSkipCount = 0;
|
||||
if (fieldName.StartsWith('@'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue