1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixed 'var' error issues

This commit is contained in:
Brian Fiete 2021-12-31 07:54:38 -05:00
parent 3a530c2285
commit 07a530c921

View file

@ -4367,7 +4367,9 @@ void BfCompiler::ProcessAutocompleteTempType()
BfResolveTypeRefFlags flags = BfResolveTypeRefFlag_None;
if ((fieldDecl != NULL) && (fieldDecl->mInitializer != NULL))
flags = (BfResolveTypeRefFlags)(flags | BfResolveTypeRefFlag_AllowInferredSizedArray);
module->ResolveTypeRef(fieldDef->mTypeRef, BfPopulateType_Identity, flags);
if ((!BfNodeIsA<BfVarTypeReference>(fieldDef->mTypeRef)) &&
(!BfNodeIsA<BfLetTypeReference>(fieldDef->mTypeRef)))
module->ResolveTypeRef(fieldDef->mTypeRef, BfPopulateType_Identity, flags);
}
mResolvePassData->mAutoComplete->CheckTypeRef(fieldDef->mTypeRef, true);