mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed inferred-size const array error during autocomplete
This commit is contained in:
parent
002fd075d1
commit
397257eba2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue