1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-03 14:56:01 +02:00

Merge pull request #1833 from disarray2077/patch-3

Fixed errors in sized array constructor
This commit is contained in:
Brian Fiete 2023-05-03 07:36:52 -07:00 committed by GitHub
commit c3c864de03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18840,10 +18840,7 @@ void BfExprEvaluator::Visit(BfInvocationExpression* invocationExpr)
checkTarget = indexerExpr->mTarget;
}
SetAndRestoreValue<bool> prevIgnoreError(mModule->mIgnoreErrors, true);
auto resolvedType = mModule->ResolveTypeRef(checkTarget, NULL, BfPopulateType_Identity);
prevIgnoreError.Restore();
auto resolvedType = mModule->ResolveTypeRef(checkTarget, NULL, BfPopulateType_Identity, BfResolveTypeRefFlag_IgnoreLookupError);
if (resolvedType != NULL)
{
BfType* curType = resolvedType;