1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed inferred-size const array error during autocomplete

This commit is contained in:
Brian Fiete 2021-12-20 10:31:57 -05:00
parent 002fd075d1
commit 397257eba2

View file

@ -3913,7 +3913,7 @@ void BfModule::ResolveConstField(BfTypeInstance* typeInstance, BfFieldInstance*
if (isLet || isVar) if (isLet || isVar)
fieldType = GetPrimitiveType(BfTypeCode_Var); fieldType = GetPrimitiveType(BfTypeCode_Var);
else else
fieldType = ResolveTypeRef(fieldDef->mTypeRef); fieldType = ResolveTypeRef(fieldDef->mTypeRef,BfPopulateType_Identity, BfResolveTypeRefFlag_AllowInferredSizedArray);
if (fieldType == NULL) if (fieldType == NULL)
fieldType = mContext->mBfObjectType; fieldType = mContext->mBfObjectType;
} }